private Double latitude; private Double longitude; /** * @return the latitude */ @NotNull @Min( value = -90 ) @Max( value = 90 ) public Double getLatitude() { return latitude; } /** * @param latitude the latitude to set */ public void setLatitude(Double latitude) { this.latitude = latitude; } /** * @return the longitude */ @NotNull @Min( value = -180 ) @Max( value = 180 ) public Double getLongitude() { return longitude; } /** * @param longitude the longitude to set */ public void setLongitude(Double longitude) { this.longitude = longitude; }
this is my unique configuration of field. I cant see the type of field in hsqldb (I tried 'show field' and 'column shows', but does not work). 2009/7/28 akimov <aki...@focusmedia.ru> > check that the hsqlsd attribute in table has necessary precision, like > "double (5)" > > On Пнд, 2009-07-27 at 16:28 -0300, Wladiston Paiva wrote: > > Hhello people, this is my first post. :) > > > > > > I'm having a problem on Hibernate. I have an app that uses JSF gmaps, > > but one of my objects have an attribute latitude, which is to type > > Double. > > > > > > When I persist the object in hsqldb (attribute latitude: -19.592476), > > so it saves on hsqldb: -19.6 > > > > > > How could I solve the problem? > > > > -- > > Wladiston Maurício de Paiva > > desenvolvedo...@gmail.com > > e...@wladistonpaiva.com.br > > +55 (31) 8435 - 5380 > > > > > > > > > > -- Wladiston Maurício de Paiva desenvolvedo...@gmail.com e...@wladistonpaiva.com.br +55 (31) 8435 - 5380 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---