GA, so you want a composite primary key? I'm not sure that's possible
in most SQL databases, though a unique composite key definitely is...

Peter Robinett

On Oct 12, 4:30 pm, my_li...@me.com wrote:
> Hello guys,
>
> How can I create a mapper with two or more fields as primary key?
>
> For instance if we have a table of "people" with a Long primary key  
> called ID generated by "IdPK", and also we have a table of addresses  
> also with a Long primary key called ID generated by "IdPK". The idea  
> is to create an association table with both IDs to represent people  
> with many addresses and addresses with multiple people. So both IDs  
> will be primary key of the new table.
>
> Thanks in advance,
>
> GA
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to