tags:

views:

60

answers:

2

Hi,

suppose you have a Lift + db4o project... How do you define User model? Should I extend MetaMegaProtoUser?

Thanks in advance, Etam.

+2  A: 

Yes, you have to Extend the MetaMegaProtoUser:

class User extends MetaMegaProtoUser[User] { 
...
}

It handles all the stuff related to user registration, password change etc..

onof
But MetaMegaProtoUser trait is in net.liftweb.mapper package...
etam
A: 

What about fields in the model? How do you replace:

object textArea extends MappedTextarea(this, 256)...

Should I simply use Java types (like String in this example)?

Thanks, Etam.

etam
No, use your model:object notes extends MappedString(this, 256)
onof