• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

why the hibernate-tools-maven-plugin 5.6.2.Final cannot read the reveng.xml

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want my hibernate-tools-maven-plugin 5.6.2.Final, goal hbm2java to generate only one java class for table "UAC_USER_SSN" , but the plugin seems ignore the reveng.xml and scan all table in all schema from my oracle database, why?

My reveng.xml stored in src/main/resources with content as follow:


My hiberate.properties also placed in src/main/resources and with content as follow:


My pom.xml is as follow:


then I run hibernate-tools:hbm2java in eclipse run configuration, but the job scans all table in the database:
 
Greenhorn
Posts: 1
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Maybe you have already solved your issue. I was also frustrated trying to make version 5.6.15.Final work. Here’s the key information that helped me:

https://github.com/stadler/hibernate-tools-maven-plugin-sample/blob/master/pom.xml

It is quite old, but I used it as a model, and it worked! Here is part of my pom.xml:



It’s similar to what you have, but you might be facing issues because your dependencies are defined later in the pom.xml.

In my case, my problem was that ChatGPT suggested putting the configuration inside the execution block, moreover before it was suggesting tags and configuration of 2.x plugin's version.

I hope this helps!

Regards.
reply
    Bookmark Topic Watch Topic
  • New Topic