On Wed, 09 Jun 2010 09:16:55 -0300, Everton Agner <everton_ag...@yahoo.com.br> wrote:

I'm not a Hibernate advanced user, but you're using a XML and Entity class annotations to configure your Entity?

I haven't noticed that. Ewerton is right: no need to use XML mappings when you use annotations.

Anyways... If you want your app to automatically increment your ID before saving it, you shouldn't use the:

In this case, it isn't the app the increments the ID, the database does.

   <generator class="assigned" />

Or @GeneratedValue.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to