[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread oskar.carlstedt
Are you sure you want to use Double as you id type. Normally databases are using integers for ids. Try to use Long ,or Integer if you can gurarantee that you won't exceed the max int value, instead? With kind regards Oskar View the original post :

[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread sashaxiv
thanks Oscar, i tried to use Long and the error persists. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043587#4043587 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4043587

[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread sashaxiv
i think this is interesting. I fixed my error but it was not in my UsuarioEJb class!! Jboss was misleading me. The error was in other class related to UsuarioEJb i had Column(name=idUsuario, updatable=false, insertable=false) public UsuarioEJB getUsuario(){

[jboss-user] [EJB 3.0] - Re: what´s the er ror

2007-05-07 Thread oskar.carlstedt
Good work! Sometimes it is hard for JBoss to find a good error message. When you specify the column annotation, JBoss tries to save/serialize the object into that column, no matter of what type it is. So in this case, JBoss finds the UsuarioEJB and then i tries to save it into the column