Ad schematics: | Word Translation | ==== ========== | name : Translation --------------> language: String | text: String |
I replace the ascii art with some code. I think is better: | @Entity | @Name("word") | public class Word { | Set<Translation> name = new HashSet<Translation>(); // maybe better use a Map because for each language we have one name. | | // setters and getters | | } | | @Entity | public class Translation { | String languageStr; | String text; | | // setters and getters | } | Please ignore the missing identifiers but are not relevant. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095164#4095164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095164 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user