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

How can I change the name of the self-referential many-to-many set using hibernate.reveng.xml?

I have a project using Hibernate on an Oracle database for which all entities are generated directly from Hibernate Tools under control of a hibernate.reveng.xml file. I have one class which has a many-to-many relationship to itself using an…
Jon
  • 1,249
  • 1
  • 10
  • 21
5
votes
2 answers

How to configure hbm2java and hbm2dao to add packagename to generated classes

I'm trying to configure hbm2java with maven to generate POJO classes and DAO objects. One of the issues I'm dealing with is package names aren't generated. I'm using the following pom for that: hbm2java
mmm
  • 1,277
  • 5
  • 18
  • 34
5
votes
2 answers

Error Fetching Children of Database - Hibernate Tools - org.slf4j.spi.LocationAwareLogger.log

Well to be honest I have spent all my Saturday reading and trying to resolve this, but nothing has worked for me. I tried all possible solutions regarding the commons-loggins and slf4j dependencies versions, but it was impossible to solve it. So…
Lucas G
  • 83
  • 1
  • 6
5
votes
2 answers

cannot generate hibernate.reveng.xml since the hibernate.connection.url is dynamic

I want to generate a hibernate.reveng.xml, but the "hibernate.connection.URL" in the hibernate.cfg.xml is a variable. jdbc:jtds:sqlserver://${database.server.name}:1433/XXX_DB so my question is how to let the hibernate-tool know where defined the…
user447586
  • 281
  • 2
  • 11
4
votes
1 answer

How generate DAO with Hibernate Tools in Eclipse?

I'm using : Eclipse Java EE IDE Web Developers version:Indigo Release with hibernate tools, i'm new to hibernate in Eclipse, so i learn how configure the hibernate and generate the POJO's with annotations (which i think is better than .xml). So…
Valter Silva
  • 16,446
  • 52
  • 137
  • 218
4
votes
3 answers

How to configure Hibernate Tools HQL editor in Eclipse with a custom NamingStrategy

I've installed Hibernate Tools 3.2.4.GA in Eclipse Ganymede. The main driver for installing it was to be able to issue HQL queries interactively. I have configured all of our mapping files, hibernate.properties, etc. and it shows all of our…
digitaljoel
  • 26,265
  • 15
  • 89
  • 115
4
votes
3 answers

Eclipse hibernate pojo generation include foreign keys

I have been following an excellent guide for generating pojos from a mysql database using hibernate. One can find the guide here for reference: Generate pojos with hibernate I am getting pojos which have fields that embed other objects when a…
melchoir55
  • 6,842
  • 7
  • 60
  • 106
4
votes
2 answers

Why does Hibernate Tools hbm2ddl generation not take into account Bean Validation annotations?

Summary: I'm using Hibernate Tools 4.0.0-CR1 and Hibernate 4.2 (including Hibernate Validator), but Bean Validations are not picked up. The schema is properly generated when deploying with hibernate.hbm2ddl.auto=create-drop. But I prefer to generate…
mabi
  • 5,279
  • 2
  • 43
  • 78
4
votes
1 answer

Hibernate tools giving error in Eclipse STS while connecting to MySQL database

I am using Eclipse STS 3.1.0 with Hibernate Tools 3.6.0. I am trying to connect to MySQL 5.5 database to generate my DAO classes. I am using MySQL driver mysql-connector-java-5.1.21.jar While setting up the hibernate console file (of Hibernate…
4
votes
3 answers

I'm getting a noclassdeffounderror when trying to generate pojos or mapping with hibernate tools

I'm trying to generate pojos from my database but I get the following error(s) on eclipse indigo 3.7.2 with hibernate tools 3.4 plugin installed and hibernate 3.6.10 libraries (they seem to be all) in my build path SHORT VERSION…
geogeorge
  • 141
  • 1
  • 3
  • 7
3
votes
1 answer

Why do I get the error "Only antlib URIs can be located from the URI alone,not the URI" when trying to run hibernate tools in my build.xml

I'm trying to run hibernate tools in an ant build to generate ddl from my JPA annotations. Ant dies on the taskdef tag. I've tried with ant 1.7, 1.6.5, and 1.6 to no avail. I've tried both in eclipse and outside. I've tried including all the hbn…
Casbah
  • 31
  • 1
  • 3
3
votes
1 answer

How to get Hibernate Tools to generate POJOs with toString,equals and hashcode?

Hibernate Tools plugin (version 3.2.4) for eclipse Hi all, I'm using the plugin to reverse engineer my POJOs and DAOs from my DB-Schema and for some reason the toString,equals and hashcode methods aren't created in the POJOs. What I'm doing is the…
Ittai
  • 5,625
  • 14
  • 60
  • 97
3
votes
1 answer

How to disable hibernate generated comments (after reverse engineer a database)?

How to remove this comment generated by Hibernate: package com.mypackage.db.entity; // Generated Oct 20, 2015 4:03:57 PM by Hibernate Tools 4.3.1.Final import ... The comment appears every time I try to reverse engineer a database model. I've…
3
votes
0 answers

NullPointerException on running Hibernate Code Generation (HibernateTools)

I am getting java.lang.NullPointerException: on running Hibernate Code Generation from JBoss Tools plugin in eclipse. The stackTrace seen is: java.lang.NullPointerException at…
Shoreki
  • 1,057
  • 4
  • 14
  • 33
3
votes
3 answers

spring Hibernate session time out

I'm using Spring Hibernate template apache tomcat and MySQL. Everything works great in development, but when I deploy the app to a test server and let it run (largely idle) overnight, I'm usually greeted with this in the morning: Following is my…
jan's
  • 31
  • 1
  • 1
  • 4
1
2
3
13 14