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]


The compilation error is in the "def getSingleton" line. The compiler  
is expecting a Mapper[SyncVW] object and it is receiving SyncVW. What  
am I doing wrong?

Thanks,

GA


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to