How to make compound keys with mapper?

View: New views
4 Messages — Rating Filter:   Alert me  

How to make compound keys with mapper?

by GA-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello guys,

could you please send me a quick example of a mapper with two fields  
as primary key? for instance a primary key including both a Long field  
and a DateTime field.

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@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to make compound keys with mapper?

by bearfeeder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry, Mapper does not support compound primary keys. :-(

On Fri, Nov 6, 2009 at 4:15 AM, GA <my_lists@...> wrote:

Hello guys,

could you please send me a quick example of a mapper with two fields
as primary key? for instance a primary key including both a Long field
and a DateTime field.

Thanks in advance,

GA






--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Parent Message unknown Re: How to make compound keys with mapper?

by Naftoli Gugenheim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


What would it take to add support?

-------------------------------------
David Pollak<feeder.of.the.bears@...> wrote:

Sorry, Mapper does not support compound primary keys. :-(

On Fri, Nov 6, 2009 at 4:15 AM, GA <my_lists@...> wrote:

>
> Hello guys,
>
> could you please send me a quick example of a mapper with two fields
> as primary key? for instance a primary key including both a Long field
> and a DateTime field.
>
> Thanks in advance,
>
> GA
>
>
> >
>


--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: How to make compound keys with mapper?

by bearfeeder :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



On Fri, Nov 6, 2009 at 10:10 AM, Naftoli Gugenheim <naftoligug@...> wrote:

What would it take to add support?

At the very least changes to Schemifier.  It would also entail more support and testing for compound fields (MappedPassword being the only example and I consider it a mistake.)

All in all, it'd be > 1 man-week for me and probably close to 1 man-month for someone less familiar with the ugly underbelly (whoops did I say that) of Mapper.
 

-------------------------------------
David Pollak<feeder.of.the.bears@...> wrote:

Sorry, Mapper does not support compound primary keys. :-(

On Fri, Nov 6, 2009 at 4:15 AM, GA <my_lists@...> wrote:

>
> Hello guys,
>
> could you please send me a quick example of a mapper with two fields
> as primary key? for instance a primary key including both a Long field
> and a DateTime field.
>
> Thanks in advance,
>
> GA
>
>
> >
>


--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics







--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to liftweb@...
To unsubscribe from this group, send email to liftweb+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---