What jpa providers (and version) are you use? 2011/9/26 Marko Borges <markoborge...@gmail.com>
> Well, thanks... > > I tried it and now says it tries to insert integer but i dont know why: > public enum BoundType { > UPPER, LOWER, REF; > } > > Im my class i have the attribute: > @Enumerated(EnumType.STRING) > public BoundType getType() { > return this.type; > } > > and then i call it > Boundtype bt = new Boundtype(name, BoundType.UPPER); > hibernateTemplate.save(bt); > > and says that i try to insert type as Integer ... > > Thanks for trying to help me.... > > 2011/9/26 Juan Pablo Gardella <gardellajuanpa...@gmail.com> > >> Use JPA2 if you can, it has native support to enums. See Mapping simple >> properties<http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html/entity.html#entity-mapping-property> >> in >> hibernate manual reference, the *Enumerated *annotation. >> >> >> 2011/9/26 Marko Borges <markoborge...@gmail.com> >> >>> Says that the column is of type XXX (my postgres enum) and I am trying to >>> insert varchar... >>> I know its an hibernate problem but i cant make some solutions showed in >>> web cause client side does not support UserType class, for example. >>> >>> I am trying to use Type annotation btw, and it doesnt work... >>> >>> >>> 2011/9/26 Juan Pablo Gardella <gardellajuanpa...@gmail.com> >>> >>>> Can you share the stack trace? >>>> >>>> 2011/9/26 Marko Borges <markoborge...@gmail.com> >>>> >>>>> Hey everyone! >>>>> >>>>> I am having a problem in persisting a postgres enum using hibernate and >>>>> GWT. >>>>> >>>>> When i follow some instructions that i found around Web, it says that >>>>> client module does not support one class used to trick for persistence. >>>>> >>>>> Does anyone know how to do it? >>>>> >>>>> Thanks, >>>>> Mark >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "Google Web Toolkit" group. >>>>> To post to this group, send email to >>>>> google-web-toolkit@googlegroups.com. >>>>> To unsubscribe from this group, send email to >>>>> google-web-toolkit+unsubscr...@googlegroups.com. >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/google-web-toolkit?hl=en. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Google Web Toolkit" group. >>>> To post to this group, send email to >>>> google-web-toolkit@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> google-web-toolkit+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/google-web-toolkit?hl=en. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google Web Toolkit" group. >>> To post to this group, send email to google-web-toolkit@googlegroups.com >>> . >>> To unsubscribe from this group, send email to >>> google-web-toolkit+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/google-web-toolkit?hl=en. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To post to this group, send email to google-web-toolkit@googlegroups.com. >> To unsubscribe from this group, send email to >> google-web-toolkit+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.