Ouch. That sounds quite unpleasant. So I still have to write reams of XML to specify finders and so on.
Is there any suggested alternative to Entities to hold information that can be looked up via an ID? I can't see an easy way of doing it using sessions and the only way I could see of doing it was entity beans. I was assuming that the final spec would actually fully support Bean Managed Entities or some way of achieving a similar result.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979337#3979337
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979337
Are you sure you changed the code at the right place. Your first post had the following code, which i asked you to change:
TblCountryFacadeLocal myCountryBean = lookupTblCountryFacade();
| List myList = myCountryBean.findAll();
| int length = myList.size();
|
| for (int i = 0; i < length; i++) {
| TblCSCSubCategory region = (TblCSCSubCategory) myList.get(i) ;
| System.out.println((i + 1)+". "+region.getStrName().toString());
| }
The code that you changed has something different:
| TblCountryFacadeLocal myCountryBean = lookupTblCountryFacade();
| List myList = myCountryBean.findAllCat();
| int length = myList.size();
|
| for (int i = 0; i < length; i++) {
| //TblCountry region = (TblCountry) myList.get(i) ;
| String country = (String) myList.get(i);
| System.out.println(country);
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3979328#3979328
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3979328