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

Hibernate Tools Indigo : Property view doesn't display result item correctly

i'm running Indigo SR1 20110916-0149 with Hibernate Tools Version: 3.4.0.v20111213-1944-H40-M5. Everything seems to work fine but the Properties view doesn't display the result item details when clicking on one of the result list in Hibernate Query…
yakup
  • 35
  • 7
0
votes
1 answer

hibernate tools toString and equals method generation

Below is my hibernate mapping file i want to generate toString and equals method using hibernate tool ant task. true
0
votes
1 answer

How to work correctly with Hibernate and Hibernate tools for eclipse?

I just started experimenting with Hibernate. My current approach for working with Hibernate is as follows: Write cfg.xml and reveng.cfg.xml Use Hibernate tools for eclipse to generate POJO and hbm.xml files. Write my own DAO classes. In the…
Artium
  • 5,147
  • 8
  • 39
  • 60
0
votes
2 answers

using Hibernate-tools to update schema

I am currently using EclipseLink JPA and in my persistence.xml file i have this property set The value field currently set to drop and create tables on each run is causing…
Warz
  • 7,386
  • 14
  • 68
  • 120
0
votes
1 answer

How can one get Hibernate to use UserType for hbm2java code generation?

My situation is that I have a Spring Boot application, a PostgreSQL database, and use the hbm2java hibernate Maven plugin to generate the entity classes. The database uses types for which JPA/Hibernate do not have a matching builtin type (example:…
Daniel Ziltener
  • 647
  • 1
  • 6
  • 21
0
votes
2 answers

Reverse Engineering with Hibernate Tools in Eclipse Indigo

I use Eclipse Indigo with plugin Hibernate Tools (JBoss by red hat) for database connection I use Microsoft SQL Server 2008 JDBC Driver. When I try to use Reverse Engineering tool (hibernate code generation configuration tool) to generate class…
0
votes
1 answer

Hibernate Tools - disable entity class generator for composite primary keys in table

Is it possible, with Hibernate Tools, to generate POJO files avoiding the generation of entity classes on tables with composite primary keys? I have this table with composite key: CREATE TABLE `arc_test` ( `id` int(11) unsigned NOT NULL…
Carlo Camusso
  • 51
  • 1
  • 9
0
votes
0 answers

Hibernate-Tools: Generate SQL schema file using Jakarta Annotations

We have a Hibernate 5.6 project (java), and want/need to upgrade the annotations from the javax namespace to jakarta (because other libraries in the same project need to update as well). I found that a Jakarta-compatible version of Hibernate 5.6 is…
domin
  • 1,192
  • 1
  • 7
  • 28
0
votes
1 answer

Hibernate Tools for Eclipse Helios

I am new to hibernate. I need Hibernate Tools for Eclipse Helios. I don't prefer to update directly in online. So downloaded the zip from http://www.jboss.org/tools/download/stable/3_2_GA.html In eclipse: (1) When I tried to install through the…
user915303
0
votes
1 answer

Eclipse JPA- Hibernate is missing from the "Platform" list of JPA project

I'm trying to follow this Redhat tutorial, "Develop Applications Using the Hibernate Tools" in Eclipse.https://access.redhat.com/articles/2372001 All is well until the point where it says : In the Platform list, click Hibernate (JPA 2.1). There's…
microwth
  • 1,016
  • 1
  • 14
  • 27
0
votes
1 answer

How to perform Hibernate Reverse Engineering in Eclipse IDE version 2020-09

I was trying to use reverse engineering in hibernate in the latest Eclipse IDE but all the resources I came across seem to be outdated. would appreciate it if I get some input as to how to go about this procedure. I tried the steps in this link…
0
votes
1 answer

Hibernate Tools reverse engineering with Gradle

When I was using Eclipse as my IDE, I used to use Hibernate Tools to reverse engineer a database to obtain my entities, complete with annotations. I recently moved to IntelliJ IDEA, which I consider to be an overral better IDE, but unfortunately…
gscaparrotti
  • 663
  • 5
  • 21
0
votes
0 answers

When I add decimal value into always encrypted database it shows error

This is main Class Code public static void main(String[] args) { ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring/applicationContext.xml"); EmployeeService employeeService =…
0
votes
1 answer

How to generate model code for "Single DB" using Hibernate Tools through Hibernate Reverse Engineering

I use the Hibernate Reverse Engineering through JBoss Tools > Hibernate Tools to generate Model Classes. There, when I add the Hibernate Configuration and Run it / Rebuild It, it list all the DBs although I mention only one DB in the…
ironwood
  • 8,936
  • 15
  • 65
  • 114
0
votes
1 answer

org.hibernate.MappingException: An association from the table X refers to an unmapped class

I'm having a problem with the generation of entities from hibernate tools. I am trying to generate the entities of 4 tables, pru1 and pru2 have a relationship many to many in the association table pru3. The pru3 keys pass as foreign keys to the…