Questions tagged [hibernate-tools]

Hibernate Tools is a toolset for Hibernate implemented as an integrated suite of Eclipse plugins, together with a unified Ant task for integration into the build cycle. Hibernate Tools is a core component of JBoss Tools and hence also part of JBoss Developer Studio.

Working with Hibernate is very easy and developers enjoy using the APIs and the query language. Even creating mapping metadata is not an overly complex task once you've mastered the basics. Hibernate Tools makes working with Hibernate or JPA even more pleasant.

Hibernate Tools is a toolset for Hibernate implemented as an integrated suite of Eclipse plugins, together with a unified Ant task for integration into the build cycle. Hibernate Tools is a core component of JBoss Tools and hence also part of JBoss Developer Studio.

The following features are available within Eclipse :

Mapping Editor : An editor for Hibernate XML mapping files, supporting auto-completion and syntax highlighting. The editor even supports semantic auto-completion for class names, property/field names, table names and column names.

Console : The Hibernate Console perspective allows you to configure database connections, provides visualization of classes and their relationships and allows you to execute HQL queries interactively against your database and browse the query results.

Reverse Engineering : The most powerful feature of Hibernate Tools is a database reverse engineering tool that can generate domain model classes and Hibernate mapping files, annotated EJB3 entity beans, HTML documentation or even an entire JBoss Seam application in seconds!

Wizards : Several wizards are provided, including wizards to quickly generate Hibernate configuration (cfg.xml) files, and Hibernate console configurations.

Ant task : The Hibernate3 tools include a unified Ant task that allows you to run schema generation, mapping generation, or Java code generation as part of your build.

Links :
Hibernate Tools
JBoss Tools Eclipse Plugins
JBoss Tools Documentation
JBoss Tools Movies

198 questions
0
votes
1 answer

Hibernate reverse engineering- many-to-many relationships

I am using Jboss hibernate tools plugin with Eclipse Kepler and JDK 6 to reverse engineer annotated POJO files from Mysql good old sakila db. The hibernate code generation configuration is set to Generate EJB3 annotations . Below is the snippet of…
Ayushi
  • 405
  • 1
  • 9
  • 19
0
votes
2 answers

Hiberante tools - Generating entity JPA

I am using Hibernate Tools to generate my entity. Now I have to edit and add new annotations as (@ JsonIgnore etc ...) My problem is this: In the future I will have to add extra columns in my database, and regenerate my entity with hibernate…
Diego
  • 2,395
  • 2
  • 21
  • 27
0
votes
2 answers

Hibernate User Type is not registering by default

I have written a custom User type to handle Date when value is NULL and Used in my pojo as @Entity @Table(name="Person" ) public class Person { private int id; @Column(name="dob", length=10) @Type(type="poc.datetype.DateTimeUserType") …
Sunil Kumar
  • 5,477
  • 4
  • 31
  • 38
0
votes
1 answer

Mapping Oracle types TimestampWithTimezone and TimestampWithLocalTimeZone to Hibernate types in reverse engineering

I have a table with three columns with sql type as TimeStamp,TimeStampWithTimeZone and TimeStampWithLocalTimeZone. In the hibernate reverse engineer process, TimeStamp is correctly mapped to Timestamp. But TimeStampWithTimeZone and…
Sunil Kumar
  • 5,477
  • 4
  • 31
  • 38
0
votes
1 answer

Hibnernate reverse engineering java.Date to sql.Date

In reverse engineering process, I have a requirement to change type of DATE object to SQL Date,for this I have added in reveng.xml file. But still Date type is…
0
votes
1 answer

How to execute HibernateToolTask from Ant when Hibernate Tools is a Maven dependency

I am using Hibernate Tools to generate pojo and dao in my project. It is currently working in the Hibernate perspective using Run > Hibernate Code Generation... However, I want to automatize this as part of a more complex build where I need to do…
Juan Garcia
  • 714
  • 6
  • 23
0
votes
1 answer

Is there way I can modify my hibernate.reveng.xml file for 2tables with composite keys having object references in the POJOs

dept_emp_dept_no_seq
Beto
  • 1
  • 2
0
votes
2 answers

How to generate a customized DAO using hibernate tools

I would like to generate a customized DAO which extends ClassA and implements SampleInterface. The SampleInterface has a method which should be implemented while generating this DAO. And also the naming convention of the DAO's I generate should have…
devvapp
  • 143
  • 1
  • 2
  • 9
0
votes
1 answer

hibernate-tools maven dependency causing timeout scanning annotations

On Windows , when I am running jetty mvn:run I am getting Timeout error as below. I found memory consumption was aoround 170 MB when this timesout. However same pom.xml configuration is running without timeout in mac and ubuntu. mvn…
fortm
  • 4,066
  • 5
  • 49
  • 79
0
votes
1 answer

Hibernate tools - POJO ordering

I'm using the latest version of Hibernate Tools from JBoss Studio / Eclipse to generate Java POJOs from my database schema. When there is a get method that gets further objects I want to have these returned in a specific order. Obviously I can just…
0
votes
1 answer

HIbernate tools reverse enginering creates a collection on a unique column

Having a table A and a table B, A has a fk to B. In A, column of this FK is unique and nullable. That means, a B is only referencied as a maximum for one A. But hibernate tools reverse enginering is generating pojos as: Pojo A with a field B. Ok,…
Ignasi
  • 5,887
  • 7
  • 45
  • 81
0
votes
1 answer

Eclipse Hibernate XML Editor: Property tag validation

I'm using Eclipse Kepler. In a hibernate mapping, exist two ways of setting a property tag: Inline: And split:
dovahkiin
  • 708
  • 14
  • 34
0
votes
2 answers

Hibernate + JodaTime mapping different types

I am using hibernate reverse engineering and trying to get my Timestamps to map to a JodaTime type. I have setup my hibernate.reveng.xml file properly
0
votes
1 answer

Package name ignored after customized reverse engineering strategy in hibernate

I override the default strategy of reverse engineering in hibernate. public class MyReverseEngineeringStrategy extends DelegatingReverseEngineeringStrategy { public MyReverseEngineeringStrategy(ReverseEngineeringStrategy delegate) { …
Mouna
  • 3,221
  • 3
  • 27
  • 38
0
votes
1 answer

Hibernate tools must not over write existing pojo

Is there a way that an existing pojo generated by hibernate tools must not be overwrite if I run the hibernate tools code generation? Consider this scenario: Class Employee is already existing, then I created another table Employee_Salary. If I want…