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