[jboss-user] [JBoss Tools] - Re: How to get db column comments with Hibernate reverse engineering?

Max Rydahl Andersen do-not-reply at jboss.com
Tue Jun 4 03:17:39 EDT 2013


Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: How to get db column comments with Hibernate reverse engineering?"

To view the discussion, visit: https://community.jboss.org/message/821166#821166

--------------------------------------------------------------
They are inside the hibernatetools-*.jar.

Unzip that jar.

copy the hbm2java directory into your own directory, i.e. "templates" so you have templates/hbm2java/*.ftl

Now use "templates" as your template path in hibernate code generation.

It will now look in this directory before looking in the jar.

Meaning you can add things into these *.ftl files and they should show up in your generated entities.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/821166#821166]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130604/7b56c233/attachment-0001.html 


More information about the jboss-user mailing list