Looks good. In keeping with the theme of a Library catalog I'm going to
rework "Gender" as "Genre" and add things like Mystery, Horror, Comedy,
Childrens' , etc. I think I can just put the Money on as a purchase price.

Thanks,

Derek

On Sun, Sep 21, 2008 at 1:19 AM, Oliver Lambert <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I've extended the JPA Demo project to include hibernate mappings for
> Money and Enumerations.
> The example money is Australian, but its simple enough to add other
> currencies.
> The example enumeration is for Gender - I've mapped the name of the
> enumeration rather than
> the ordinal value and extended it to include a description field,
> valueOf method and list of name value pairs.
>
> Hope its of use
> Oliver
>
> >
>
>
>
>
> On 21/09/2008, at 1:40 PM, Jorge Ortiz wrote:
>
> >
> > On Sat, Sep 20, 2008 at 9:14 AM, Oliver Lambert <[EMAIL PROTECTED]>
> > wrote:
> >>
> >> I need this too so I might have a go at implementing it. Does lift
> >> persist
> >> enumerations (cant see a mapper it)
> >
> > There's a MappedEnum class in MappedInt.scala
>
> Thanks for this - I should have looked more
> >
> >
> > --j
> >
> > --~--~---------~--~----~------------~-------~--~----~
> > 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]<[EMAIL PROTECTED]>
> > For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en
> > -~----------~----~----~----~------~----~------~--~---
> >
>
>
>

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