Hello, I need some help for map the follwing relations with ejb3:
| |-------------------| |--------------------| | |Product | |Description | |-------------------| | |-------------------| |--------------------| |Languages | | |product_id:int (PK)|----->|product_id:int (PK) | |-------------------| | |... | |language_id:int (PK)|<----|languga_id:int (PK)| | |-------------------| |... | |... | | |--------------------| |-------------------| | I need a method for getting the Productdescription for a specified language like | public Description getProductDescription(int pLangugeId) | For me the problem is to set up such a method. I get an error when I try to set up a relation with a parameter (the languges_id isn't stored in the Product Class and it's an unidirectional relation!). Can anybody give me a hint how to solve this problem?! Thanks Andreas View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917612#3917612 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917612 ------------------------------------------------------- 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://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user