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

what is the hibernate tools plugin for eclipse update site url?

Or perhaps this is a manual install only deal.
chickeninabiscuit
  • 9,061
  • 12
  • 50
  • 56
0
votes
0 answers

Can't create SessionFactory in Hibernate Tools Console

I want to use hibernate console in my JPA project. I'm using Hibernate. When I try to create a Session Factory the following error appears in the Error Log: If I double click the message a dialog appears with more detailed…
miguelcobain
  • 4,734
  • 4
  • 32
  • 45
0
votes
1 answer

Custom hibernate tool exporter

I use the maven plug in to generate pojo and dao : org.codehaus.mojo hibernate3-maven-plugin 2.2 generate-sources
jpprade
  • 3,497
  • 3
  • 45
  • 58
0
votes
1 answer

create template for hibernate mapping files

How can I create (if I can) a template file for my hbm.xml files to use while they are being created from JAVA class? I am using Jboss Hibernate Tools 3.5.1 and Eclipse Indigo You can find a detailed description below. Thanks for your help. My…
ozgurc
  • 75
  • 3
  • 10
0
votes
1 answer

does anyone know which version of hibernate tools is JPA 2.0 compliant

I've used hibernate-tools-4.0.0-CR1.jar having some problems with informix (11.7) reverse engineering entities generation, I'd like to try earlier versions to see if that helps but documentation is not clear to me about JPA 2.0 compliant…
0
votes
1 answer

Enum class not found when using EnumType in Hibernate hbm file

I'm using hbm files to generate my POJO objects using hbm2java through an Ant task. I'm trying to change some hard coded values to Enum using org.hibernate.type.EnumType in my XML:
Henry
  • 2,650
  • 2
  • 19
  • 23
0
votes
1 answer

OneToMany - org.hibernate.AnnotationException: mappedBy reference an unknown target entity property

I'm trying to generate the DB schema from my domain classes using the hibernate-tools.jar bundled in OpenXava. Unfortunately, two classes with a OneToMany association are causing me troubles. This is the first one: @Entity public class Deceased…
iccuta
  • 165
  • 1
  • 13
0
votes
1 answer

Hibernate Tools in Eclipse: Change in column values does not reflecting in the query result

I am using Eclipse indigo and hibernate tools 3.3 for testing my hql queries. I have configured hibernate tools correctly. But when I am querying to db after changing the values in a column, the old data is coming in result. When I closed the…
Dinoop paloli
  • 633
  • 2
  • 8
  • 25
0
votes
0 answers

Cannot control BLOB length for DB2 dialect using hibernate

I'm trying to control the length of a BLOB column using the DB2 schema. My final goal is to have hibernatetool generate the SQL file for a 10M long BLOB column, and given the files pasted down here I always get a blob(255). What am I doing…
skuro
  • 13,414
  • 1
  • 48
  • 67
0
votes
1 answer

hibernatetools ant task - hbm2java - creates pojo without package statement

I'm exporting my mapping (hbm.xml) to pojo classes using ant task. It generates the POJO files in the mapped directory. But the Classes miss the Package statement. It simply creates all files in default package // default package // Generated Aug…
Keerthi
  • 80
  • 2
  • 7
0
votes
1 answer

Broken Hibernate Reverse Engineering Task, Obscure Error Message

We have a project which uses the standalone Hibernate Tools Ant task to build the hbm.xml files and POJOs. We only run the Ant task, which has its own build.xml file, when we need to add or update POJOs, not every time we build the project. …
user1071914
  • 3,295
  • 11
  • 50
  • 76
0
votes
3 answers

"'hibernate.dialect' must be set when no Connection available " error despite having set the dialect

I have tried to run a hibernatetool Ant task but i've been unsuccesfull.Help. The jars are from my eclipse(3.7.2) hibernate tools plugin(3.4). I get a org.hibernate.HibernateException: 'hibernate.dialect' must be set when no Connection available …
geogeorge
  • 141
  • 1
  • 3
  • 7
0
votes
2 answers

Issue with Eclipse Hibernate Tools

I'm trying to use the Hibernate Code Generation feature in Hibernate Tools Eclipse Add-On. It is giving me the following error: org.hibernate.InvalidMappingException: Could not parse mapping document from resource Alert.hbm.xml Could not parse…
opike
  • 7,053
  • 14
  • 68
  • 95
0
votes
1 answer

What does the type option in the hibernate console wizard do?

Hibernate tools has a Hibernate Console wizard, and it has a type option with three possible values to select from: core, annotations and jpa. The official documentation says nothing about the outcomes of selecting any one of these values. What…
mahonya
  • 9,247
  • 7
  • 39
  • 68
0
votes
1 answer

Is it possible to use Hibernate Tools to generate POJOs with Hibernate Annotations without EJB?

I'm using hibernate tools under Eclipse Indigo. The Hibernate Console has Annotations option selected and hibernate version is 4.0. The hibernate tools wizard generates annotations only when I choose Generate EJB3 Annotations option. This…
mahonya
  • 9,247
  • 7
  • 39
  • 68
1 2 3
13
14