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
1
vote
1 answer

Hibernate tools and SQL server with integrated security

I have a project in eclipse (indigo) where I access SQL data using Hibernate. I have set up a couple of classes and used annotations to manually map to the tables. I have added a driver jar file (sqljdbc4.jar) to the build path and entered the path…
Normunds Kalnberzins
  • 1,213
  • 10
  • 20
1
vote
2 answers

Generating DAO with Hibernate Tools on Eclipse

How can I use the tools to generate DAOs? In fact, instead of passing through the hbm files, I need to configure hibernate tools to generate the DAO and the annotations. See Hibernate Tools - DAO generation and How generate DAO with Hibernate Tools…
Houssam Badri
  • 2,441
  • 3
  • 29
  • 60
1
vote
1 answer

Use mappings from annotations in Hibernate configuration/HQL editor

I want to use HQL editor to test queries but it doesn't work. The problem is that we use annotations instead of configuration file. Is it possible to use annotations instead of configuration file as mapping informations? For now after I run query in…
pepuch
  • 6,346
  • 7
  • 51
  • 84
1
vote
1 answer

Reverse engineering generate ==, not equals

My team is using Hibernate Tools 4.0.0 on the current project, and I am using FindBugs. It's flagging that the generated ORM code's equals method is using == instead of equals. I searched but couldn't find how to change that. From my…
user1766760
  • 631
  • 2
  • 8
  • 26
1
vote
0 answers

Useing hibernate reverse engineering with hibernate-spatial, postgis and custom nameing strategy

I'm searching for an example to use hibernate reverse engineering for an existing postgis database (http://code.google.com/p/indicia/) for usage with hibernate-spatial and a custom naming strategy (because tables are plural with underscores in the…
dve
  • 371
  • 2
  • 16
1
vote
1 answer

best way to reverse engineer pojos using hibernate

What is the best (easiest) way to reverse-engineer POJOs from a database? I would like to generate probably 40 entity classes from tables, just to save a bunch of typing. I would like to use the Hibernate Tools toolset but all examples seem…
user1071914
  • 3,295
  • 11
  • 50
  • 76
1
vote
1 answer

Eclipse,Hibernate tools, Is there any way to preview the sql equivalent query for criteria editor

I am using Hibernate tools 3.3 in Eclipse Indigo. Is there any way to view the Sql equivalent query for the criteria that I created? There is one Hibernate Dynamic SQL View which shows Sql preview for Hql editor. But I haven't find any preview for…
Dinoop paloli
  • 633
  • 2
  • 8
  • 25
1
vote
2 answers

Eclipse, junit, Hibernate An internal error occurred during: "Fetching children of Database"

When i'm trying to open hibernate perspective in Eclipse, i receive the above error, with the following stacktrace: java.lang.NoSuchMethodError:…
Ivan
  • 4,186
  • 5
  • 39
  • 72
1
vote
3 answers

NoClassDefFoundError: Could not initialize org.hibernate.tool.version

I'm trying to reverse engineer my Oracle Database with Hibernate Tools. However, when I try to do so, I get the following error: Received a NoClassDefFoundError, propably the console configuration classpath is incomplete or contains conflicting…
1
vote
2 answers

Hibernate tools Pojo Generation uses Set by default

Hibernate tools Pojo Generation uses java.util.Set by default. I want to generate POJO's with java.util.List instead of java.util.Set. Is there any way ?
Zeeshan
  • 1,173
  • 5
  • 19
  • 26
1
vote
1 answer

Add Hibernate Search Annotations with Hibernate tools

I'm using hibernate with annotations and hibernate tools with freemarker templates to automatically generate my orm dao classes. Now I'd like to implement hibernate search and therefor want to add hibernate search annotations to these classes and…
1
vote
1 answer

Generating SQL DDL via Ant task in Hibernate 3.xx from Annotation Beans

My project setup is Hibernate 3.2.5,MySQL,Spring MVC, NetBeans Apache 7.xx I'm not getting any errors during build & run. Trying to generate SQL DDL scripts from annotation beans via Ant task, however I'm getting the following error: Reference…
cyber101
  • 2,822
  • 14
  • 50
  • 93
1
vote
1 answer

How does one use Hibernate Tools to create tables from POJOs?

I am having some trouble searching for what I want to do. I am told that I can generate database tables using Hibernate that represent POJOs I created in Java. I must be missing something. Thank you for the help on the trivial issue.
user1281598
  • 217
  • 4
  • 17
1
vote
1 answer

Can I reverse engineer a Postgresql db with Hibernate tools when a table has a UUID field?

I want to implement the following workflow: I design tables in postgresql 9, I use Hibernate Tools from Eclipse Indigo to generate POJOs for these tables, and I want Hibernate to use annotations. Using Eclipse Indigo, latest Postgresql JDBC…
mahonya
  • 9,247
  • 7
  • 39
  • 68
0
votes
1 answer

Installation of hibernate tools in Eclipse

I used this link http://download.jboss.org/jbosstools/updates/stable/ for the JBoss site. From above mentioned link I downloaded the entire JBoss Tools 3.2.0, Hibernate Tools (HT) from Application Development, HT from Data Services, JBoss Maven…
Pranali
  • 105
  • 3
  • 13