This content has been marked as final.
Show 3 replies
-
1. Re: Loosing PK on query
hilwi Jun 19, 2006 4:38 PM (in response to hilwi)I forgot to post my client-code to retrieve the addresses:
protected void GetAddresses() { try { Context context = ClientTools.getInitialContext(); Object ref = context.lookup("AddressesBean/remote"); Addresses addresses = (Addresses)PortableRemoteObject.narrow(ref,Addresses.class); setLstAddresses(addresses.getAllAddresses()); for (int i=0; i<lstAddresses.size(); i++) { System.out.println(((Address)lstAddresses.get(i)).getName1()+String.valueOf(((Address)lstAddresses.get(i)).getId())); } } catch (Exception e) { e.printStackTrace(); } }
As I manetioned in my previous post, the function getName1() returns the currect names of the addresses but the getId() always returns 0. -
2. Re: Loosing PK on query
abl Jun 20, 2006 3:15 AM (in response to hilwi)try:
...
@MappedSuperclass
public class JbsObject implements Serializable {
private long id;
... -
3. Re: Loosing PK on query
hilwi Jun 22, 2006 2:03 PM (in response to hilwi)This works!! Thank you!