What sort of database are you trying to use Hibernate against (look at the
property hibernate.dialect in the file persistence.xml)?
I think the error may mean that your trying to use GenerationType.AUTO
against a database that doesn't support it.
On Mon, Jun 22, 2009 at 7:08 PM, David Persons <[email protected]> wrote:
>
> Hello guys,
>
> I get a org.hibernate.exception.SQLGrammarException: could not get or
> update next value error everytime I try to save the following Entity:
>
> @Entity
> class Scene {
> @Id
> @GeneratedValue(){val strategy = GenerationType.AUTO}
> var id : Long = _
>
> @Column{val unique = true, val nullable = false}
> var ordering : Int = _
>
> @Column{val unique = true, val nullable = false}
> var name : String = ""
>
> @ManyToOne{val optional = false}
> var storyBoard : StoryBoard = _
> }
>
> What am I doing wrong??
>
> grtz,
> David Persons
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---