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
2
votes
1 answer

Generating source with maven-hibernate3 plugin

Besides generating other source files, I want to generate one factory class for DAO classes - DAOFactory.java. I'm using hbmtemplate for that purpose - with my own *.ftl file. Problem is that (as I understand correctly) file is generated for each…
Ramps
  • 5,190
  • 1
  • 45
  • 47
2
votes
0 answers

Hibernate tools perspective does not appear after installation on eclipse neon

I was able to install hibernate tools on eclipse neon Java IDE Standard. At first it failed, afterwards I did an offline installation for GIT, and successfully installed the JBoss Hibernate tools. Anyone knows how to fix this problem?…
Bondhan Novandy
  • 362
  • 1
  • 4
  • 16
2
votes
3 answers

Hibernate type used to map java.lang.Double

I am using "double" in Hibernate .hbm.xml files, and when I generate classes with Hibernate Tool I get class property which has primitive type double. I want this property to be java wrapper type Double. How can I achieve this? If I change this…
azec-pdx
  • 4,790
  • 6
  • 56
  • 87
2
votes
1 answer

HibernateToolTask (hbm2hbmxml) doesn't generate index in hibernate-mapping from @org.hibernate.annotations.Index annotations

I am trying to generate hibernate-mapping from POJOs with hibernate annotations. Then I want to use liquibase to generate database schema. So I need indexes to be defined in my POJOs. Sample POJO: @Entity public class A { @Id …
2
votes
1 answer

NoSuchMethodError when executing HQL and C3P0 is enabled

Hibernate works great for me until I attempt to include C3P0, at which point I run into issues. I've added these to my pom.xml: org.hibernate hibernate-c3p0
2
votes
0 answers

Hibernate Tools - Unhandled event loop exception - eclipse

I have configured hibernate tools and after few hours of normal usage something got corrupted and every time I type a HQL query the error below appears Unhandled event loop exception Java version installed is java 8 but the project on which I run…
QGA
  • 3,114
  • 7
  • 39
  • 62
2
votes
2 answers

Hibernate hbm2ddl with synonyms

I've recently added synonyms to our DB. These synonyms hold the entire entity information, hence have their own mapping file. Connecting to the synonyms is not an issue. The issue is when using the hbm2ddl tool. If I include the synonym mapping…
levacjeep
  • 673
  • 3
  • 6
  • 23
2
votes
1 answer

Hibernate tools: how to ignore foreign keys?

Hibernate tools (for Eclipse) reverse engeneering generates POJO with reference fields. How to ignore DB relation? For example, class User { private City city; ... } I want get class User{ private Integer cityId; ... }
Satmurat
  • 41
  • 7
2
votes
6 answers

@SequenceGenerator - allocationSize, reverse engineering with Eclipse Hibernate Tools

I use the Eclipse Hibernate Tools to create domain classes with JPA annotations from my Oracle database. To control sequence generation I have added the following entry to the hibernate.reveng.xml: ...
Spooky
  • 65
  • 3
  • 10
2
votes
1 answer

NullPointerException while creating mapping file using hibernate tools

I am using hibernate tools to create mapping file but once i select the class and when i go to next step i get this error in eclipse Problems occurred when invoking code from plug-in: …
Sabareesh Kkanan
  • 1,201
  • 1
  • 14
  • 22
2
votes
3 answers

Hibernate tool to use synonym in database

Does hibernate tool have the ability to connect to synonym tables in the database? I was asked about this by my the DBA this question.
zDroid
  • 426
  • 1
  • 11
  • 32
2
votes
1 answer

How do I map a fixed length string to Postgresql using GORM?

I have a 9 character string I want to store in Postgresql (9.3) as character(9). Just as important, I want it to validate correctly if the database is correct, which is not happening. I am generating the schema using the Database Migration plugin,…
Philip
  • 697
  • 7
  • 20
2
votes
1 answer

Reverse engineering with custom ReverseEgineeringStrategy

I want to do reverse engineering (generate java classes from my database) with a custom ReverseEgineeringStrategy. I succeeded to do this using hibernate-tools plugin for eclipse. But I want to use hibernate3-maven-plugin to do this. I searched a…
Mouna
  • 3,221
  • 3
  • 27
  • 38
2
votes
1 answer

Where does Hibernate Tools store its database connection info in Eclipse?

I am using Hibernate Tools in Eclipse and having a problem. When we were initially trying to setup HT to be configured properly with our weird configuration, we made a custom DB connection (Right click your Hibernate configuration -> Edit…
Jason Maskell
  • 1,716
  • 1
  • 17
  • 26
2
votes
2 answers

How to configure Hibernate when you are using a Spring Session Factory

I am trying to setup Hibernate Tools in eclipse. The trouble is that it can't find any mapping files. I have created a console configuration that points to my environment.properties file and hibernate.cfg.xml. The trouble is that there are no…
jax
  • 37,735
  • 57
  • 182
  • 278