Hello, Supose we have an EntityBean called Person.java
Person.java private Long id; private String name; private Country country; A Second Entity obiously is Country :) Country.java private Long id; private String name; And finally we have a method called savePerson which uses EJB 3.0 API internally, so public savePerson(String name, long countryId) { ... } MI QUESTION: We have only countryId, but not the entire object Country, so is necesary retrieve first the Country object from database using entitymanager? is posible avoid this foo step and use a proxy or what ever you like? in hibernate is posible using load() i think, but i like avoid use hibernate api explicity (in my source code) thanks in advance kodaky View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918338#3918338 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918338 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user