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

Hibernate tools: persistence unit not found

I have created a Hibernate / JPA project and I'd like to create entities from tables. While the tool works like a charm selecting a pure Hibernate configuration, in the JPA mode it does not work, claiming the absence of the persistence unit As shown…
vinlos
  • 43
  • 1
  • 6
3
votes
1 answer

Using Hibernate tools for generating .hbm file for a single table from database

I wanted to create a Hibernate mapping file from my database for a few tables (not all). How can I achieve this? When I am trying, it is considering my entire database and crashing without creating any mapping files. It gives me the following…
avinash chavan
  • 729
  • 2
  • 11
  • 27
3
votes
2 answers

Using hibernate tools to reverse engineer pojos from Postgres

I am trying to reverse engineer pojos (using hibernate tools plugin v3.2.4x in eclipse 3.4.2) from a database that I have created in Postgres but my tables are being ignored. It works if I specify 'public' as the value for the…
Damian
  • 8,062
  • 4
  • 42
  • 43
3
votes
1 answer

Avoid generating header comments with Hibernate generation tools

When generating DTO objects, hibernate tools generate comments in the header: // Generated 22 avr. 2013 20:29:27 by Hibernate Tools 3.4.0.CR1 Every generation the comments change (as they contains the generation date/time). The problem is that in…
Majid Laissi
  • 19,188
  • 19
  • 68
  • 105
3
votes
2 answers

HibernateTemplate Update Query

How to use hql update query using hibernate template thi is the hql statement "update Login set empSmartId = 48750005" +" where empPassword = 6328ef1675ddb7106eba8dc2661961d7" using getHibernatetemplate() Current code: public class LoginDaoImp…
matrix
  • 53
  • 2
  • 6
3
votes
2 answers

Hibernate generate random entity

It istrong texts possible to easily generate random entity using hibernate. For example, I have got a simple entity User with 2 fields (name and surname) and I need to create 100 different entities. Is it possible using Hibernate to create…
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
3
votes
2 answers

How to generate Hibernate field annotations?

How to configure Hibernate Tools in Eclipse Indigo to make annotations on fields instead on getters, when generating model based on existing database?
trj
  • 77
  • 1
  • 12
3
votes
4 answers

org.hibernate.MappingException: entity class not found ( using qualified class name does not work)

I'm trying to run a simple SELECT FROM table ( I have also tried SELECT FROM package.Class )query but I keep getting this error : org.hibernate.MappingException: entity class not found: demo.Agents at…
geogeorge
  • 141
  • 1
  • 3
  • 7
3
votes
0 answers

Hibernate Tools - Configure JNDI connection

I have installed Hibernate Tools Eclipse plug-in for Eclipse Indigo as I want to use the ability to test my HQL queries and try running them against my database and parse the results 'live'. In my hibernate.cfg.xml file I have defined a JNDI…
Michael Freake
  • 1,197
  • 2
  • 14
  • 35
2
votes
1 answer

hibernate tools & hibernate template in DAO

I used Hibernate tools Eclipse plugin to generate the DAO implementation but it uses a "javax.persistence.EntityManager". I want to generate a DAO impl based on my mapped entity(using JPA annotations) that use a Hibernate Template provided by Spring…
observer
  • 725
  • 4
  • 10
  • 20
2
votes
1 answer

Jboss doesn't map my auto-generate entity class with hibernate-tools

A strange thing happens when I put my auto-generated entity classes with hibernate-tools 3.2.4-GA into Jboss 6.1.0-Final. My persistence.xml has every class record with the correct…
sebbalex
  • 397
  • 4
  • 15
2
votes
2 answers

eclipse plugin to create hibernate annotated entities?

i know that hibernate tools can create hibernate entities but the hibernate mapping will be in XML file, but i was wondering if there's a tool to create hibernate entities and the mapping will be with annotations not in XML.
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
2
votes
2 answers

use hibernate tool with spring project

i have existing project with datasource setup with spring.xml . the xml look like below
cometta
  • 35,071
  • 77
  • 215
  • 324
2
votes
2 answers

Eclipse Hibernate.cfg.xml is linking "sys" database from MySQL

When I use Hibernate to connect to a MySQL database, bookstoredb, in Eclipse, a connection to the MySQL sys database also shows up! I'm using the following: Ubuntu 18.04.5 LTS (desktop) Eclipse 2020-6 (4.16.0) w/JBoss Tools, Hibernate-Tools…
Phil Freihofner
  • 7,645
  • 1
  • 20
  • 41
2
votes
0 answers

Hibernate auto code-generator from db schema

I'm trying to auto generate class codes with annotation from existing db (mySql). I have problem with configuration hibernate tools in eclipse this way to dont map foregin ID-key to int but to class. Eg, I have entity A with ID indicates to entity…
JohnyBe
  • 313
  • 1
  • 2
  • 10
1 2
3
13 14