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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to