table without any primary_keys?

0 views
Skip to first unread message

a...@svilendobrev.com

unread,
May 17, 2008, 9:52:15 PM5/17/08
to sqlal...@googlegroups.com
seems such thing is disallowed, or at least Mapper complains.
is it SQL requirement or what?

Michael Bayer

unread,
May 17, 2008, 11:54:46 PM5/17/08
to sqlal...@googlegroups.com

On May 17, 2008, at 9:52 PM, a...@svilendobrev.com wrote:

>
> seems such thing is disallowed, or at least Mapper complains.
> is it SQL requirement or what?

the mapper needs some set of PK columns defined for mapped classes so
that it can identify objects. they dont need to be actual PK columns
in the database.

in theory there just needs to be a function that can extract a primary
key from a row - it doesnt even necessarily have to be "use these
columns". though such a feature would require some API changes.

Reply all
Reply to author
Forward
0 new messages