-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: need to load attributes of class
PostPosted: Thu Oct 13, 2005 3:56 pm 
Newbie

Joined: Thu Sep 22, 2005 5:17 pm
Posts: 11
hello,
i have two classes

class Keystone {
private Integer id = null;
// getters, setters
}

class PersonalRole extends Keystone {
private Login login = null;
// setters, getters
}

class Login extends Keystone {
private Integer uid = null;
// setters, getters
}


when i load personal role from db using select this is set to login attribute
Quote:
login= Login$$EnhancerByCGLIB$$731c59cf (id=353)
CGLIB$BOUND= true
CGLIB$CALLBACK_0= CGLIBLazyInitializer (id=362)
componentIdType= null
constructed= true
entityName= "cz.bes.bec.core.role.role.data.Login"
getIdentifierMethod= Method (id=282)
id= Integer (id=364)
initialized= false
interfaces= Class[1] (id=284)
overridesEquals= false
persistentClass= Class<T> (cz.bes.bec.core.role.role.data.Login) (id=71)
replacement= null
session= SessionImpl (id=344)
setIdentifierMethod= null
target= null
unwrap= false
CGLIB$CONSTRUCTED= true
code= null
description= null
id= null
name= null
password= null
uid= null

call lrole.getLogin().getId() returns id
but any other call like
lrole.getLogin()
lrole.getLogin().getUid()
...
end with invocationException
i tried to load the login object by load method but it returns the same object, the proxy or what it is

could you tell me how to load other attributes of login

_________________
thanks
blaf


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.