Inheritanc

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Inheritanc

karthik085
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>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Inheritanc

nmaves
The ibatis project has moved and been renamed.

It is no longer being maintained as an Apache project, but has moved
(along with the development team) here:

http://www.mybatis.org/

Please join us at the new location by joining the mailing list here:

http://groups.google.com/group/mybatis-user

On Thu, Jun 24, 2010 at 1:05 PM, karthik085 <[hidden email]> wrote:

>
> 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>
> --
> View this message in context: http://old.nabble.com/Inheritanc-tp28985663p28985663.html
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...