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

org.jboss.tools.hibernate.runtime.spi.HibernateException: Could not get list of tables from database. Probably a JDBC driver problem

I am getting below error in Hibernate Tools. org.jboss.tools.hibernate.runtime.spi.HibernateException: Could not get list of tables from database. Probably a JDBC driver problem. Configured schema:null Configured catalog:null Available…
0
votes
1 answer

Hibernate: Gradle Ant cannot find hibernate.reveng.xml

I am creating a task for generating java classes from the database. I created a gradle task using ant. The strange this is that the task is expecting a hibernate.cfg.xml file for revengfile property. This is my gradle task: task hibernate{ …
Merve Sahin
  • 1,008
  • 2
  • 14
  • 26
0
votes
0 answers

Hibernate Tools Reverse Engineering does not agree with Validator

Using: Hibernate Tools 5.2.x (tried 5.2.0.Final and 5.2.9.Final) Hibernate Core-5.2.13.Final. Dialect: org.hibernate.dialect.MySQL57Dialect Spring 5, Spring Boot 2, Gradle Hibernate tools hbm2java generates this: @Column(name="domain",…
aimass
  • 408
  • 5
  • 11
0
votes
1 answer

org.hibernate.gradle.tools user and password don't work in database section

I am using org.hibernate.gradle.tools version 1.2.5 (latest) like so: plugins { id "org.hibernate.gradle.tools" version "1.2.5" } and apply plugin: "org.hibernate.gradle.tools" I have the user and password defined in the database section like…
aimass
  • 408
  • 5
  • 11
0
votes
1 answer

Hibernate Tools Generate Classes approach

I would like to know what is the best approach when it comes to update the generated pojo classes should i do it manually or with the hibernate tools, is there any way to tell the Hibernate tools to update only a specific classes and not affect the…
Necronet
  • 6,704
  • 9
  • 49
  • 89
0
votes
1 answer

Hibernate Tools Configuration not finding entities in library project

When I create a new Configuration in the "Hibernate Configuration" tab, the Session Factory node correctly shows the entities that are listed in the persistence.xml file of the main project, but fails to find all entities from a library project. I'm…
xtian
  • 2,908
  • 2
  • 30
  • 43
0
votes
1 answer

Where to find documentation for hibernate tools

I am trying to find documentation for Hibernate Tools so that I can configure the JPA facet of an Eclipse project to use Hibernate instead of EclipseLink. Unless I don't know anymore how to do web searches or browse the Eclipse help, the most recent…
AbVog
  • 1,435
  • 22
  • 35
0
votes
1 answer

Error when using Hibernate tools Session factory

I get org.hibernate.MappingException: entity class not found: Company In my Spring MVC project I already have classes mapped with annotations and I use Hibernate. I installed and configured Hibernate Tools to use HSql editor and mapping diagram. The…
RomZes13
  • 105
  • 1
  • 3
  • 13
0
votes
2 answers

Hibernate Tools : how to generate base classes?

I recently installed Eclipse Helios and Hibernate Tools 3.4.0.Beta1. I've been trying to generate "base class" from mapping files but can't find out how to do. Let us say I have a mapping file called Individual.hbm.xml. I want Hibernate Tools to…
0
votes
1 answer

Hibernate tools reverse engineering creates Set or List

Two tables A and B. B has a NOT NULL foreign key (many-to-one) which points to A. There is no columns in A, which tells, the table B exists. That means the relation is one-way Created POJO classes A and B with Eclipse hibernate tools reverse…
Ramanujan R
  • 1,601
  • 2
  • 23
  • 43
0
votes
1 answer

reverse engineering postgresql using hibernate tool in eclipse

I am trying to reverse engineer postgresql using hibernate tools in eclipse. It is not generating @Generated annotation. postgres tables have primary key defined with serial keyword. what can be the problem?
ArslanAnjum
  • 1,674
  • 2
  • 17
  • 31
0
votes
1 answer

Hibernate tools reverse engineering is not working

I'm using Hibernate tools (JBoss Tools 4.4.0.Final) in Eclipse Neon. Now I want to reverse engineer the database tables into POJO objects and Hibernate mapping files. I followed some tutorials on how to setup Eclipse to generate the POJO objects.…
JimmyD
  • 2,629
  • 4
  • 29
  • 58
0
votes
1 answer

hbm2dll java.lang.ExceptionInInitializerError

I'm trying to use the ant taks hbm2dll but every time I try to execute it, I have a java.lang.ExceptionInInitializerError. Here's my ant task:
Jérèm Le Blond
  • 645
  • 5
  • 23
0
votes
1 answer

Hibernate 3 Maven Plugin -> remove "Generated by Hibernate Tools"

I am Using the hibernate 3 Maven Plugin Version 2.2 to create my Entities of the database. This works great, but i have one problem. My entities contain the Comment : // Generated 07.10.2015 12:46:10 by Hibernate Tools 3.2.2.GA Is there any way to…
0
votes
0 answers

Use the eclipse hibernate tool with hibernate spatial library

There is some one that was able to configure the HQL tool of the eclipse hibernate tool? I have try to configure it using the JPA. My configuration generate all the Entity (that are observable in the configuration) and the connection to the database…