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

Metamodel classes generated by Hibernate tools

I'm using Hibernate Tools in Eclipse to reverse engineer the domain entities of an existing database. I more-or-less have everything generating how I want, although I still get a batch of "Metamodel" classes generated alongside my domain classes.…
seanhodges
  • 17,426
  • 15
  • 71
  • 93
1
vote
2 answers

What exactly hibernate enableExtendedEnhancement does?

I know this might not be the right place to ask a question like this, but so far enableExtendedEnhancement is not documented and I was not able to find any resources on this topic. Please explain this in detail. Thanks in advance.
1
vote
0 answers

hbm2ddl not working for some entity class in old claimed working source code

We have received claimed working source code. In code, all the entity model classes (hbm2java) are auto generated by Hibernate Tools 4.0.0 (checked by generated class java docs). We are trying to perform reverse engineering to generate database…
1
vote
1 answer

Visual Designer Tool for Hibernate Annotations

I started using Hibernate only recently. While I was playing with it, I experienced the problem , which I assume, is faced by every Hibernate Beginner. I want a good visual designer Tool that can generate Annotated Classes for Hibernate. It should…
Lucky Murari
  • 12,672
  • 5
  • 22
  • 43
1
vote
0 answers

Conflicting JPA Implementations For Ant Task in Eclipse

I'm currently working on setting up an ant task to run the hibernate-tools task. If I run the ant task from the command line everything seems to be fine. If I try to run that same task using eclipse however it fails with the error:…
pbuchheit
  • 1,371
  • 1
  • 20
  • 47
1
vote
2 answers

An exception occurred while running exporter #2:hbm2ddl (Generates database schema)

I'm try to generate dbSchema with the following task launch (eclipse whith maven project)
peppe71-19
  • 212
  • 1
  • 5
  • 20
1
vote
1 answer

How to fix 'Problems while reading database schema' from Hibernate Configuration tool

I am trying to generate codes from my mysql server 5.7.25 using Hibernate Tool in Eclipse, I already installed jboss plugin in the marketplace, but when I create a hibernate configuration I get 'Problems while reading database schema' when I view…
Rico Sancho Abarro
  • 257
  • 2
  • 5
  • 12
1
vote
1 answer

Where do I specify my custom reverse engineering class when using the hibernate-tools plugin for maven?

I have a custom strategy but I can't figure out how to get this plugin to use it. My relevent pom section is: org.apache.maven.plugins
user939857
  • 377
  • 5
  • 19
1
vote
2 answers

Hibernate reverse engineering primary keys (EmbeddedId to IdClass)

I am using hbm2java (hibernate3-maven-plugin) in order to generate entities. How do I switch the auto generated @EmbeddedId to @IdClass? Thanks
1
vote
1 answer

Hibernate Tools 5.3 - Mysql 8 - domain generation

I try to generate java class from MySql 8.0.12 database by using Hibernate Tools on eclipse Class are well generated but without annotations (like @Entity, etc...) Here is my Hibernate Tools configuration : I can ping database and retrieve tables…
anakin59490
  • 630
  • 1
  • 11
  • 28
1
vote
2 answers

Unhandled event loop exception with Hibernate Tools in Eclipse Oxygen

I'm getting an "Unhandled event loop exception" with Hibernate Tools in Eclipse Oxygen. I get this when I try to "Finish" the Hibernate Configuration Wizard below. Note, I've tried numerous combinations of the entries on this page & all lead to…
Mr Smith
  • 3,318
  • 9
  • 47
  • 85
1
vote
1 answer

Hibernate Tools failing to get index info from Postgres tables

I'm using Hibernate Tools with Ant to generate POJOs from a Postgres database. My database has two simple tables: Person and Vehicle. Each table has two columns: an id and a name When the Person POJO is being generated, Hibernate throws an exception…
Mike Z
  • 133
  • 1
  • 1
  • 7
1
vote
1 answer

Reverse engineering check constraints & indexes w/ Hibernate?

I've been tasked with reverse engineering Hibernate mappings from a large, legacy, sql server database. The database makes extensive use of check constraints (several per table) and indexes, and while I would argue that these are DBA concerns,…
1
vote
0 answers

Hibernate Tools reverse engineering field access mode

Im asking if there is any way to achive the Jboss hibernate tools reverse engineering generating the annotations on the fields besides the methods (witch comes by default i think). I know that there are two types of AccessType: FIELD and METHOD, in…
GBS
  • 124
  • 1
  • 3
  • 16
1
vote
1 answer

Support for @ElementCollection in hibernate tools hbm2ddl

I am trying to use the jpa2 feature @ElementCollection for a List of Strings in my Entity. I am using the hibernate3-maven-plugin to carry out the hbm2ddl task. However it seems the version of hibernate tools used by the plugin does not know how to…
Paul Whelan
  • 16,574
  • 12
  • 50
  • 83