Hibernate tools 3.2.4.Beta1 What's New

< Main Index JBoss AS Tools News >


Generate JPA/Hibernate Annotations

We added a "Generate JPA/Hibernate Annotations" entry in the Source menu of java elements (classes, packages, source directories etc.). This menu will analyze the source code and do a best-guess on how to enable persistence for you model.

Here we have chosen to Generate JPA/Hibernate Annotations on single class and the list of classes that will touched to make this model persistent is shown.

Users can press Preview... to see which changes will be done. Notice that bi-directional assocations is mapped automatically.

Use DTP Connection

Hibernate console configuration can now use a Data Tools Project (DTP) connection configured in Eclipse instead of the default hibernate connection settings.

Improved Exporter property editor

Exporter properties now have type specific input fields instead of just a simple text field.

More validation in Console configuration wizard

Default console name is now generated so it is unqiue avoiding warnings and the name is furthermore checked for invalid filename characters preventing any errors doing save.

JPA Projects

Hibernate page in persistence.xml

We now have a Hibernate specific page in the persistence.xml editor for JPA projects to provide a form UI for Hibernate specific properties.

JPA Project Generate Entities

We now provide support for JPA Project Generate Entities action and allow you to use a DTP connection directly or use a Hibernate Console configuration for the basis of the generation.