[java ee programming] Re: Problem in Hibernate

2009-07-29 Thread pacior
When i was dealing with latitude i had the same problem. I decided to not save the latitude and longtitude, but to use web service to do it for me. I am saving just the result of computation, beeing done on longtitude and latitude. You may always divide a number into n parts, and each should have

[java ee programming] Re: Problem in Hibernate

2009-07-28 Thread Wladiston Paiva
I will try later. 2009/7/28 Leonardo Pessoa > > Usually when i need to use decimal numbers I use java BigDecimal class > and the field in the database are NUMERIC. > Always solved my problem why don't you try?? > > > > -- Wladiston MaurĂ­cio de Paiva desenvolvedo...@gmail.com e...@wladistonpai

[java ee programming] Re: Problem in Hibernate

2009-07-28 Thread Leonardo Pessoa
Usually when i need to use decimal numbers I use java BigDecimal class and the field in the database are NUMERIC. Always solved my problem why don't you try?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Java EE (

[java ee programming] Re: Problem in Hibernate

2009-07-28 Thread Wladiston Paiva
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