Hi,

Just a wild guess - maybe you need to use the uppercase name?

mt_estado_id_estado_seq > MT_ESTADO_ID_ESTADO_SEQ

Regards,
Thomas


On Mon, Jan 26, 2009 at 9:48 PM, Natanael Ramalho
<[email protected]> wrote:
>
> Hi everybody,
>
> I decided to use H2 in a desktop application as db. I'm also using
> Toplink essentials. I would like to know how to create a sequence
> using this combination. I've tried this:
>
> @Entity
> @Table(name = "MT_ESTADO")
> @SequenceGenerator(name = "ESTADO_ID", sequenceName =
> "mt_estado_id_estado_seq", allocationSize = 1, initialValue = 1)
> public class Estado implements Serializable{
>
>        @Id
>        @GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
> "ESTADO_ID")
>        @Column(name = "ID_ESTADO", unique = true)
>        Integer id;
> ...
> }
>
> but It's not working. Any idea?
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2 
Database" 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/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to