On 20/09/2008, at 7:35 AM, David Pollak wrote:
>
>
> Charles F. Munat wrote:
>>
>> I thought about that. Essentially, that's what Hibernate is
>> supposed to
>> do, though. It only saves the integer value. (At least, that's what
>> @Enumerated(EnumType.ORDINAL) is supposed to mean, if I unders
This is because Hibernate only understands Java enums, not Scala
Enumerations. However, you could easily write a custom type mapping
for Scala enumerations and use the Hibernate @Type annotation - it's
not JPA canon (why didn't they forsee the need for customized
mappings?), but if you're using Hi
Charles F. Munat wrote:
> I thought about that. Essentially, that's what Hibernate is supposed to
> do, though. It only saves the integer value. (At least, that's what
> @Enumerated(EnumType.ORDINAL) is supposed to mean, if I understand it
> correctly.)
>
>
Hibernate understands Java enumer
I thought about that. Essentially, that's what Hibernate is supposed to
do, though. It only saves the integer value. (At least, that's what
@Enumerated(EnumType.ORDINAL) is supposed to mean, if I understand it
correctly.)
I'm still curious as to why the code I have doesn't work, but if no one
Rather than storing the Gender enumeration in the RDBMS, I'd suggest
storing the Int value of the enumeration.
@Column{val name="gender"}
var genderInt : Int = _
def gender: Gender = Gender(genderInt)
def gender_=(what: Gender.Value) =
Charles F. Munat wrote:
> I'm still
I'm still trying to get a Gender enumeration to work with JPA. The
problem now seems to be on the JPA end (I'm using the JPADemo code that
Derek provided).
I get the following error:
javax.persistence.PersistenceException: org.hibernate.MappingException:
Could not determine type for: scala.Enu
On Sep 19, 12:56 pm, "Miles Sabin" <[EMAIL PROTECTED]> wrote:
> Can you show me your .classpath and .project files?
Sure, sent off-list.
Ian.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to
On Fri, Sep 19, 2008 at 6:46 PM, sanity <[EMAIL PROTECTED]> wrote:
> I do this, but get this:
>
> Exception in thread "main" java.lang.NoClassDefFoundError: RunWebApp
> Caused by: java.lang.ClassNotFoundException: RunWebApp
>at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>
I'm following the instructions on the page
http://liftweb.net/index.php/Using_eclipse_hotdeploy.
I've got today's snapshot of the new Eclipse plugin.
When I get to this stage:
> right click on your-proj-id > src/test/scala > RunWebApp.scala and select
> Debug As > Open Debug Dialog...
> check
Thanks for your responses guys - maybe i have something freaky going
on with my .m2 I'll blow it away and try a fresh lift build
Cheers
Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To pos
Sorry if this example is redundant:
page.html
Header stuff
left column stuff
template.html
...
and
...
I played with this yesterday (works ok for me
Tim,
Here's a very basic example that works just fine on Lift 0.10-SNAPSHOT.
Thanks,
David
On Fri, Sep 19, 2008 at 9:07 AM, Tim Perrett <[EMAIL PROTECTED]> wrote:
>
> Awesome, cheers David.
>
> Looking through trunk with-param appears to be specified in sites/
> example/wiki, but there is no c
Awesome, cheers David.
Looking through trunk with-param appears to be specified in sites/
example/wiki, but there is no corresponding bind point in the layout
Cheers
Tim
On Sep 19, 5:03 pm, David Pollak <[EMAIL PROTECTED]> wrote:
> I'll work on an example
--~--~-~--~~~
I'll work on an example
Tim Perrett wrote:
> Hmmm im not sure I follow. Let me be explicit:
>
> default.html
>
>
>
>
> ...
>
>
>
>
> mypage.html
>
>
>
>
>
>
>
> Welcome
>
>
>
> Now, based on what DPP posted, I would imagine that the toppoint bind
> position would be repla
Hmmm im not sure I follow. Let me be explicit:
default.html
...
mypage.html
Welcome
Now, based on what DPP posted, I would imagine that the toppoint bind
position would be replaced with that image tag. However, what I get is
the image take slapped in the content bi
15 matches
Mail list logo