[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Showing posts with label eclipse. Show all posts
Showing posts with label eclipse. Show all posts

2010-10-01

Using Querydsl In Eclipse

Querydsl usage in Eclipse is now easier than ever. Since Querydsl 2.0 we have improved APT support in Querydsl to support incremental code generation in IDEs. We have also improved the release bundles to streamline the APT configuration in Java IDEs like Eclipse.

The APT usage improvements affect the JPA, JDO and MongoDB modules. Instead of a set of screenshots we have prepared a screencast to showcase the new APT features in Querydsl in an Eclipse context.

To enable APT usage in Eclipse you need to
  • set the Enable annotation processing checkbox via Properties > Java Compiler > Annotation Processing,
  • add the APT option defaultOverwrite = true if you are using Eclipse Helios and
  • set the Factory Path to one of the apt-one-jar files included in your release bundle.

The screencast uses the Querydsl JPA module in combination with Hibernate and shows the creation of a Java project, the creation of two simple domain types and the creation of a minimal demo service which presents the simplicity of Querydsl query usage.