[jboss-user] [JBoss Seam] - Re: creating Edit forms for transaltable entities - and kee
marius.oancea
do-not-reply at jboss.com
Mon Oct 15 05:52:51 EDT 2007
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
More information about the jboss-user
mailing list