Hibernate.reveng.xml

Answered

 Hey guys,

 

this is my first post so please be appreciative :)

 

So my problem with the IDE and Hibernate:

I have a project with like more then 60 tables in the database and i want to reverse engineer them. I get the connection with the database and i can reverse engineer it BUT the default like "(database) number = (java field) long" is not what i want. Sure at reverse engineering i can tell every single field what it should be in Java but that's really annoying for more then 60 tables.

 

In Eclipse you can take the JBOSS Plugin and write a "hibernate.reveng.xml" file. With that you can change the default mapping from the fields so that "number = java.math.BigDecimal". 

 

Does Intellij Idea provide any similar option? Or can i create a hibernate.reveng.xml file and bind it to the config?

Or is there an other solution to change the default generation type?

I googled a long time but only find solutions for eclipse.

Thanks for your help :)

 

 

2 comments
Comment actions Permalink

Hello Fabian,

It is not possible currently. Please vote for related requests in our tracker: https://youtrack.jetbrains.com/issue/IDEA-128307 and https://youtrack.jetbrains.com/issue/IDEA-144763

1
Comment actions Permalink

Thank you Andrey Dernov.

I voted both requests. Hope it will be supported some day :)

0

Please sign in to leave a comment.