Java Mailing List Archive

http://www.java2.5341.com/

Home » user-java.ibatis »

Inheritanc

karthik085

2010-06-24

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,
I am using iBatis 3.0 beta-9
How can inheritance or has-a relationship be specified for the following
case?

class A
 name: String

class B extends A
 id: Integer


Currently, I was trying to use "has-a" relationship - association to do it -
but, it is not working!
  <resultMap id="A" type="org.XXX.A">    
    <result property="name" column="name" />
    <association property="B" column="a_b_id" javaType="org.XXX.B"/>
  </resultMap>

  <association property="B" column="a_b_id" javaType="org.XXX.B">
    <id property="id" column="id" />
  </association>
--
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscribe@(protected)
For additional commands, e-mail: user-java-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.