[Lift] Re: class hierarchy with models

2009-04-01 Thread Giuseppe Fogliazza
Hi Tobias. I am a newbie too, Hence wait for more solid support. Nevertheless I made some investigate on how to describe a complex object model using Mapper. The short answer is that Mapper does not support inheritance and hence you cannot specilized the ToDo class. Period. Moreover in some

[Lift] Attribute as MappedField efficiency concerns

2009-04-12 Thread Giuseppe Fogliazza
I have been surprised looking at how Mapper and Record frameworks use object of anonymous classes extending (Mapped)Field to represent attributes. This provide a powerful mechanisms to incorporate in Field traits and classes, services for persistency and representation. Based on this I am trying

[Lift] Re: Schemifier for Record?

2009-07-29 Thread Giuseppe Fogliazza
In my comprehension of the overall framework, Mapper provides persistence together with form management for ui construction and some serialization method to support the development of REST services. In the design of Record, persistency has been stripped away in order to create the condition to

[Lift] Re: Schemifier for Record?

2009-07-29 Thread Giuseppe Fogliazza
(or multiple child nodes) of a node. I am looking at the recent extension to Mapper for inspiration. Regards Giuseppe On 29 Lug, 10:06, marius d. marius.dan...@gmail.com wrote: On Jul 29, 10:44 am, Giuseppe Fogliazza g.foglia...@mcmspa.it wrote: In my comprehension of the overall framework, Mapper

[Lift] Re: How to use Mapper and record framework

2009-07-30 Thread Giuseppe Fogliazza
Dear Pravin. Your requests address very basic behaviour of the framework, and you should not experience any problem in adapting examples from the aforementioned book. Even simpler you could follow the Todo example in Getting Started with Lift accessible from liftweb site (http://liftweb.net/docs/

[Lift] Re: How to use Mapper and record framework

2009-07-31 Thread Giuseppe Fogliazza
Hi Pravin, I'm sorry but I have no experience with MS SQL. By any chance does it change something if you modify the name of your MappedField from id to empId ? Regards Giuseppe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[Lift] Re: Implementing KeyedRecord[T,K]

2009-07-31 Thread Giuseppe Fogliazza
To my understanding, KeyedRecord as well as KeyedField should provide the basis to implement relationship between model objects. If in my model object I have a relationship with another model object this will required the referred class to be at least a KeyedRecord. Such ReferenceField similar to

[Lift] Re: CMS for Lift?

2009-08-17 Thread Giuseppe Fogliazza
I confirm that there are some efforts in progress. Particularly I am writing a jsr 170 (jackrabbit) backend for Record. It is taking longer than expected because I am extending Record with reference field and multivalued field that are of paramount relevance in domain modeling. I studied recent

[Lift] Re: CMS for Lift?

2009-08-17 Thread Giuseppe Fogliazza
On 17/08/2009 15:44, Giuseppe Fogliazza g.foglia...@mcmspa.it wrote: I confirm that there are some efforts in progress. Particularly I am writing a jsr 170 (jackrabbit) backend for Record. It is taking longer than expected because I am extending Record with reference field and multivalued

[Lift] Re: Mapper subclasses

2009-09-03 Thread Giuseppe Fogliazza
Unfortunately you cannot escape from asInstanceOf . Forcing self:MapperType the type of this will be TimeStamp with MapperType violating the constraint for the type of the first parameter of MappedDateTime :T : Mapper[T]. Regards Giuseppe On 3 Set, 07:08, Naftoli Gugenheim naftoli...@gmail.com

[Lift] Re: Mapper subclasses

2009-09-03 Thread Giuseppe Fogliazza
As an alternative to asInstanceOf you could use explicit type parameter in MappedField creation: self:MapperType = object xdatetime extends MappedDateTime[MapperType](this) On 3 Set, 09:19, Giuseppe Fogliazza g.foglia...@mcmspa.it wrote: Unfortunately you cannot escape from asInstanceOf

[Lift] Re: Mapper subclasses

2009-09-03 Thread Giuseppe Fogliazza
} Thanks jon I have improved model in my application with this approach. Giuseppe On 3 Set, 16:16, Giuseppe Fogliazza g.foglia...@mcmspa.it wrote: As an alternative to asInstanceOf you could use explicit type parameter in MappedField creation: self:MapperType = object xdatetime extends