|
Hi
Aram,
Still
I am getting NullPointerException. I am unable to find the problem.
The following is the
ErrorDescription
--------------------------------------------------------
--- The error occurred while applying a result map. --- Check the User.userMapForStaticAndDynamicRamBabu. --- Check the result mapping for the 'properties' property. --- Cause: java.lang.NullPointerException Thanks n
Regards,
=============================
Rambabu
Piridi. From: Mkhitaryan, Aram [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 9:50 AM To: [email protected] Subject: RE: Need help---Mapping of Complex properties <result
property="properties"
column="USR_ID"
select="RamBabuExtension"
/> You missed also
column attribute. Also use
USR_ID=#value#
instead of
USR_ID=#usr_id# Add this and try
again. Best, Aram From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] <resultMap
id="userMapForStaticAndDynamicRamBabu"
class="user"
groupBy="userid"> <result
property="userid"
column="USR_ID"/> <result
property="username"
column="USR_NAME"/> <result
property="role"
column="ROLE_ID"/> <result
property="description"
column="DESCRIPTION"/> <result
property="properties"
select="RamBabuExtension"
/> </resultMap> <resultMap
id="userExtensionMapForStaticAndDynamicRamBabu"
class="UserProperty"> <result
property="propertyname"
column="PROPERTY_NAME"/> <result
property="propertyvalue"
column="PROPERTY_VALUE"/> </resultMap> <statement
id="RamBabu"
resultMap="userMapForStaticAndDynamicRamBabu"> select * from
USR_BASIC_INFO </statement> <statement
id="RamBabuExtension"
resultMap="userExtensionMapForStaticAndDynamicRamBabu"> select * from
USR_EXTENSION_INFO where USR_ID=#usr_id# </statement> Thanks n
Regards, ============== Rambabu
Piridi.
|
- RE: Need help---Mapping of Complex properties rambabu.piridi
- RE: Need help---Mapping of Complex properties Mkhitaryan, Aram
- RE: Need help---Mapping of Complex properties rambabu.piridi
- error... Henry Lu
- RE: Need help---Mapping of Complex properties rambabu.piridi
