Discussion:
[jboss-user] [JBoss Tools] - hibernate-reverse-engineering - how to inherit the generated POJOs from a base class
Ashfaque Mohammad
2013-03-26 00:04:32 UTC
Permalink
Ashfaque Mohammad [https://community.jboss.org/people/ashjboss2013] created the discussion

"hibernate-reverse-engineering - how to inherit the generated POJOs from a base class"

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

--------------------------------------------------------------
Hi,

I am trying to reverse the model entities from a database schema. Would like to know how to make the generated entities (anotated POJOs) from a base class i.e how can I use the <meta attribute="extends">MyBaseClass</meta> while reverse-engineering from the DB schema?

Thanks.
Ash.
--------------------------------------------------------------

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

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]
Max Rydahl Andersen
2013-04-02 12:04:08 UTC
Permalink
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the discussion

"Re: hibernate-reverse-engineering - how to inherit the generated POJOs from a base class"

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

--------------------------------------------------------------
You can define meta-attributes in reveng.xml or via  a ReverseEngineeringStrategy.
--------------------------------------------------------------

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

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