On Sun, Nov 8, 2009 at 5:51 AM, GA <[email protected]> wrote: > > Yes, it just did the trick. It compiles now. > > Why is it working now? Isn't it Mapper also a MetaMapper? >
No. A Mapper corresponds to a row in your table. A MetaMapper corresponds to the table itself. > > > On Nov 8, 2009, at 12:27 PM, Jeppe Nejsum Madsen wrote: > > > > > GA <[email protected]> writes: > > > >> Hello guys, > >> > >> I need to create a database view to create a very specific query from > >> an API. I am planning the following steps: > >> > >> 1. Create the view in the database directly > >> 2. Create a model without a primary key extending Mapper instead of > >> Keymapper > >> 3. I am not going to add the view to Schemifier since I am managing > >> the creation and maintenance of the object manually > >> > >> My problem is that I am having problems to compile the Mapper class. > >> This is the code I am trying to create: > >> > >> class SyncVW extends Mapper[SyncVW] { > >> def getSingleton = SyncVW > >> > >> object field1 extends MappedLong(this, ContentSource) > >> object field2 extends MappedString(this, 999) > >> object field3 extends MappedString(this,255) > >> object field4 extends MappedString(this,30) > >> } > >> object SyncVW extends SyncVW with Mapper[SyncVW] > > > > I think this last line should read > > > > object SyncVW extends SyncVW with MetaMapper[SyncVW] > > > > /Jeppe > > > > > > > > > > -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
