Mike,
Thanks for answering
Let me try to elaborate the issue I am facing

I have below tables.
*RoutingObject*
*  *routingObjId
   name

*Attribute*
   attrId
   attrName
   validationRule

 I have a link table connecting above tables and there is a value for each
link

*Routing_Attrib_Link*
   routingObjId
   attrId
   value


I need to create Entity like this

@Entity
@Table(name = RoutingObject)
*RoutingObject*
   int routingObjId;
   String name;
   HashMap<String, String> attributes;
In the above hash map I need to have attributeName as the key and value in
the link as the value.


Could you please help me to map these


Thanks and regards,
Ajiyos

On Thu, Jul 23, 2009 at 4:23 AM, Michael Dick <[email protected]>wrote:

> Hi Ajiyos,
>
> I'm not sure what you're asking. Are you trying to link A and B without
> having a ManyToMany association, or are you asking whether you can use the
> ManyToMany association but not use a join table?
>
> You definitely do not need a third entity to link A and B, but we will
> create a join table A_B to maintain the relationships.
>
> Hope this helps,
> -mike
>
> 2009/7/22 അജിയോസ്‌ യോഹന്നാന്‍(Ajiyos) <[email protected]>
>
> > I have a few questions on JPA field mapping
> >
> >
> >  I have two tables A and B. The records in A is linked to the records in
> B
> > using a link table(Many to Many association) in rdbms. However I have
> some
> > properties for that link(association). Can I represent it without having
> a
> > link entity.
> >
> > Any insight into this problem will be helpful to me..
> >
> > Thanks and regards,
> > Ajiyos
> > --
> > "Attitude not the Aptitude determines the Altitude"
> >
>



-- 
"Attitude not the Aptitude determines the Altitude"

Reply via email to