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.
196
questions
1
vote
1
answer
156
views
How can I use the latest version of Hibernate Tools with Gradle to reverse engineer persistence objects from the database?
Following along with the answer to this question, I was able to use Gradle to reverse engineer Java entities from a MySQL 8 database.
However, the highest version of hibernate-tools and hibernate-core ...
0
votes
0
answers
32
views
Hibernatetool : schemaExport Ant task Failed with ClassNotFoundException: org.hibernate.ejb.Ejb3Configuration
My goal is to export database schema from Jpaconfiguration entities loaded in the classpath when building the project (create-schema.sql).
I found that using Hibernate tools exporters is the ...
0
votes
1
answer
105
views
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 :
...
0
votes
1
answer
77
views
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 ...
0
votes
1
answer
356
views
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 ...
2
votes
2
answers
253
views
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-...
1
vote
1
answer
73
views
What exactly hibernate enableExtendedEnhancement does?
I know this might not be the right place to ask a question like this,
but so far enableExtendedEnhancement is not documented and I was not able to find any resources on this topic.
Please explain this ...
1
vote
0
answers
38
views
hbm2ddl not working for some entity class in old claimed working source code
We have received claimed working source code. In code, all the entity model classes (hbm2java) are auto generated by Hibernate Tools 4.0.0 (checked by generated class java docs). We are trying to ...
1
vote
0
answers
94
views
Conflicting JPA Implementations For Ant Task in Eclipse
I'm currently working on setting up an ant task to run the hibernate-tools task. If I run the ant task from the command line everything seems to be fine. If I try to run that same task using eclipse ...
0
votes
0
answers
293
views
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");
...
1
vote
2
answers
208
views
An exception occurred while running exporter #2:hbm2ddl (Generates database schema)
I'm try to generate dbSchema with the following task launch (eclipse whith maven project)
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse....
0
votes
1
answer
308
views
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 ...
1
vote
1
answer
2k
views
How to fix 'Problems while reading database schema' from Hibernate Configuration tool
I am trying to generate codes from my mysql server 5.7.25 using Hibernate Tool in Eclipse, I already installed jboss plugin in the marketplace, but when I create a hibernate configuration I get '...
0
votes
1
answer
460
views
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 ...
0
votes
1
answer
360
views
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:...
1
vote
1
answer
1k
views
Where do I specify my custom reverse engineering class when using the hibernate-tools plugin for maven?
I have a custom strategy but I can't figure out how to get this plugin to use it.
My relevent pom section is:
<build>
<plugins>
<plugin>
<groupId>org....
1
vote
1
answer
439
views
Hibernate Tools 5.3 - Mysql 8 - domain generation
I try to generate java class from MySql 8.0.12 database by using Hibernate Tools on eclipse
Class are well generated but without annotations (like @Entity, etc...)
Here is my Hibernate Tools ...
1
vote
2
answers
1k
views
Unhandled event loop exception with Hibernate Tools in Eclipse Oxygen
I'm getting an "Unhandled event loop exception" with Hibernate Tools in Eclipse Oxygen. I get this when I try to "Finish" the Hibernate Configuration Wizard below. Note, I've tried numerous ...
1
vote
1
answer
666
views
Hibernate Tools failing to get index info from Postgres tables
I'm using Hibernate Tools with Ant to generate POJOs from a Postgres database.
My database has two simple tables: Person and Vehicle. Each table has two columns: an id and a name
When the Person ...
5
votes
3
answers
3k
views
Annotation not created when generating Hibernate mapping files
I am following this link to generate hibernate file
https://www.mkyong.com/hibernate/how-to-generate-code-with-hibernate-tools/
the files are generated but without annotation.
I checked the "...
0
votes
1
answer
403
views
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.
...
0
votes
0
answers
257
views
Hibernate Tools reverse engineering field access mode
Im asking if there is any way to achive the Jboss hibernate tools reverse engineering generating the annotations on the fields besides the methods (witch comes by default i think). I know that there ...
0
votes
0
answers
225
views
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 ...
0
votes
1
answer
360
views
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 ...
1
vote
0
answers
407
views
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. ...
0
votes
1
answer
48
views
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 ...
0
votes
1
answer
77
views
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 ...
0
votes
1
answer
976
views
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 ...
0
votes
1
answer
376
views
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 ...
1
vote
0
answers
2k
views
org.hibernate.hql.internal.ast.QuerySyntaxException: ContactEntity is not mapped [select c from ContactEntity c]
I am new to hibernate and trying to configure the JPA console in an eclipse to have some research on JPAQL. I followed https://www.youtube.com/watch?v=50Hx3N_a9as and setup the JPA console by ...
1
vote
1
answer
135
views
Hibernate Tools not recognizing many to many relation
When I try to auto-generate my entity classes, hibernate tools generates the many to many class and doesn't make the generation many to many. These are my tables:
CREATE TABLE `role`(
`id` int(13)...
0
votes
1
answer
207
views
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 ...
1
vote
1
answer
634
views
Generate entities with cascade delete
I am generating entities for our large database via JBoss hibernate reverse engineering. I was hoping to see cascade annotations in entities, but did not see them on generation.
Is there a way to ...
0
votes
1
answer
2k
views
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 ...
2
votes
0
answers
406
views
Hibernate tools perspective does not appear after installation on eclipse neon
I was able to install hibernate tools on eclipse neon Java IDE Standard. At first it failed, afterwards I did an offline installation for GIT, and successfully installed the JBoss Hibernate tools. ...
1
vote
1
answer
1k
views
InvocationTargetException when using Hibernate Tools 5.1.0.Final
EDIT: like an answer below says, this is a bug and it's been reported by someone else.
I was trying to use Hibernate Tools to generate DTOs (this is a question I opened yesterday about that task) in ...
0
votes
1
answer
260
views
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:
<taskdef name="hibernatetool" classname="org....
1
vote
0
answers
833
views
How to describe(view all the columns) a table in Hibernate at run time?
I have a scenario, I am learning Hibernate. I have heard about the dynamic POJO classes(bytecode) in java. So I am assuming to create a POJO class Dynamically. For that,I need to know the name of the ...
1
vote
1
answer
2k
views
Calling hbm2ddl from gradle
Is there a gradle plugin or any other means of calling the hibernate-tools hbm2ddl task to generate a database schema from annotated classes, without having to list all the entities (@Entity) in some ...
1
vote
1
answer
454
views
Hibernate reverse engineering cascade
I'm using the Hibernate Reverse Engineering to generate annotated entities and a cfg.xml for a very large non static set of database tables. Is it possible to tell the reverse engineering tool to set ...
2
votes
1
answer
992
views
NoSuchMethodError when executing HQL and C3P0 is enabled
Hibernate works great for me until I attempt to include C3P0, at which point I run into issues. I've added these to my pom.xml:
<dependency>
<groupId>org.hibernate</groupId&...
1
vote
1
answer
807
views
Hibernate tools are not generating POJOs with Oracle sequence?
I am trying to generate Hibernate entity pojos using Hibernate Tools eclipse plugin/Maven Hibernate Plugin. POJOs are generating fine, but I need @Id to use the Oracle sequence as given below :
@Id
@...
4
votes
3
answers
2k
views
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 ...
2
votes
0
answers
580
views
Hibernate Tools - Unhandled event loop exception - eclipse
I have configured hibernate tools and after few hours of normal usage something got corrupted and every time I type a HQL query the error below appears
Unhandled event loop exception
Java version ...
3
votes
1
answer
658
views
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 ...
0
votes
1
answer
319
views
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 ...
0
votes
0
answers
150
views
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 ...
0
votes
1
answer
1k
views
Hibernate reverse engineering- many-to-many relationships
I am using Jboss hibernate tools plugin with Eclipse Kepler and JDK 6 to reverse engineer annotated POJO files from Mysql good old sakila db.
The hibernate code generation configuration is set to ...
3
votes
0
answers
387
views
NullPointerException on running Hibernate Code Generation (HibernateTools)
I am getting java.lang.NullPointerException: <no message> on running Hibernate Code Generation from JBoss Tools plugin in eclipse. The stackTrace seen is:
java.lang.NullPointerException
at ...
0
votes
2
answers
158
views
Hiberante tools - Generating entity JPA [closed]
I am using Hibernate Tools to generate my entity.
Now I have to edit and add new annotations as (@ JsonIgnore etc ...)
My problem is this:
In the future I will have to add extra columns in my database,...