[jboss-user] [JBoss Tools] - how to customize dao export code
u j
do-not-reply at jboss.com
Tue Apr 19 05:42:58 EDT 2011
u j [http://community.jboss.org/people/bcn] created the discussion
"how to customize dao export code"
To view the discussion, visit: http://community.jboss.org/message/600914#600914
--------------------------------------------------------------
How can I change the scope of the entityManager field in the generated Home classes of the dao exporter to protected?
That's what I did so far:
- In Eclipse I added a hibernate.hbm.xml file to the console configuration
- The console configuration is used in the code generation run configuration which generates the DAOs
- The hbm.xml looks like:
<hibernate-mapping>
<meta attribute="scope-field" inherit="true">protected</meta>
</hibernate-mapping>
I also tried:
<hibernate-mapping>
<meta attribute="scope-field" inherit="true">protected</meta>
<class name="TCity">
<meta attribute="scope-field">protected</meta>
<id></id>
</class>
</hibernate-mapping>
I observe no effects at all, neither in entity classes nor in dao classes. Either the file is not used or the format is wrong.
Thanks in advance
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/600914#600914]
Start a new discussion in JBoss Tools at Community
[http://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/20110419/b46bc78e/attachment-0001.html
More information about the jboss-user
mailing list