[appengine-java] Re: generating sequence for persistence classes like Country and so on ...

2010-07-09 Thread Nacho Coloma
That seems like good advice. For this concrete use case there is a country list included with your JDK: Locale[] locales = Locale.getAvailableLocales(); for (Locale locale : locales) { countries.add(new Option(locale.getCountry(), locale.getDisplayCountry(currentLocale))); } On Jul 8, 7:11 p

[appengine-java] Re: generating sequence for persistence classes like Country and so on ...

2010-07-10 Thread cscsaba
Hello Ikai, I dont know how can I set the keys according to the flat file content. I haven't met example where I can generate own ids for my entity classes. This is my bigest problem. It seems my post was not clear enough, sorry. On júl. 8, 19:11, "Ikai L (Google)" wrote: > Why not just load th

[appengine-java] Re: generating sequence for persistence classes like Country and so on ...

2010-07-10 Thread cscsaba
Hello, I dont know the way of generating sequence 1,2,3 for countries by JPA. It generates keys which are not agree with country codes. Sorry, I was not clear enough. On júl. 9, 09:51, Nacho Coloma wrote: > That seems like good advice. For this concrete use case there is a > country list include

[appengine-java] Re: generating sequence for persistence classes like Country and so on ...

2010-07-11 Thread cscsaba
Hello Hariharan, I need the way, which can instruct the JPA using the xml, flat file ids as unique identifier. Since I'm not able to use the find() which is rely on the key field. With the following JPA annotation generating ids get out of my control. @Id @Generated

Re: [appengine-java] Re: generating sequence for persistence classes like Country and so on ...

2010-07-10 Thread Hariharan Anantharaman
In my application, instead of flatfile, i used XML to have the key and value (again these entries are used for drop down) and i read the values using xPath api's. Given that the country list is static as said before, i guess it should be work fine. Thanks Hari 2010/7/10 cscsaba > Hello, > > I

Re: [appengine-java] Re: generating sequence for persistence classes like Country and so on ...

2010-07-12 Thread Hariharan Anantharaman
Ok. It was my mistake to get your question wrong. Apologize for the confusion. Thanks Hari 2010/7/12 cscsaba > Hello Hariharan, > > I need the way, which can instruct the JPA using the xml, flat file > ids as unique identifier. > Since I'm not able to use the find() which is rely on the key fi