Giter Site home page Giter Site logo

Comments (15)

pushpanktugnawat avatar pushpanktugnawat commented on August 10, 2024

I am even facing the same problem while persisting the Point as well as Geometry data type.

Please help to resolve this ASAP.

from spring-boot-spatial-example.

pushpanktugnawat avatar pushpanktugnawat commented on August 10, 2024

@mstahv Please help to resolve this I have done this with same configuration as provided in code but still it causes the same problem.

Your kind help is appreciated.

from spring-boot-spatial-example.

punit412 avatar punit412 commented on August 10, 2024

Hello @mstahv , Please reply if you have some solution for the above-mentioned issue.

from spring-boot-spatial-example.

mstahv avatar mstahv commented on August 10, 2024

I don't have the project open ATM and don't remember what column type was required by MySQL. Try changing the column type from "geometry" to "POINT": https://github.com/mstahv/spring-boot-spatial-example/blob/master/src/main/java/org/vaadin/example/SpatialEvent.java#L21-L22

from spring-boot-spatial-example.

punit412 avatar punit412 commented on August 10, 2024

Already, I do the changes as per your comment. Still, the same issue occurred. Please suggest.

from spring-boot-spatial-example.

pushpanktugnawat avatar pushpanktugnawat commented on August 10, 2024

@mstahv Thanks for reply ! we did the same but issue still persist. Please suggest a way to solve this as its causing the same issue as mentioned above again.

from spring-boot-spatial-example.

mstahv avatar mstahv commented on August 10, 2024

from spring-boot-spatial-example.

pushpanktugnawat avatar pushpanktugnawat commented on August 10, 2024

We are working with latest DB version as well as Hibernate 5.1.0 which supports Spatial & JPA too.

Pl help as its very critical to resolve such issues.

from spring-boot-spatial-example.

pushpanktugnawat avatar pushpanktugnawat commented on August 10, 2024

@mstahv any update on issue ??

from spring-boot-spatial-example.

mstahv avatar mstahv commented on August 10, 2024

IIRC, the Hibernate version you use (the default by spring boot 1.x) is bad for mysql. Use 5.2 series in the project. I guess this is the issue you have had. I tried with mysql 5.7.17 and all worked fine. Created a separate branch, configured for mysql, try with that:

https://github.com/mstahv/spring-boot-spatial-example/tree/mysql

from spring-boot-spatial-example.

punit412 avatar punit412 commented on August 10, 2024

@mstahv I have tried with your build only. and found the same issue again having latest hibernate version - 5.2.4.Final and Mysql - 5.7.12. Might be it is not related to the MySQL version.

from spring-boot-spatial-example.

mstahv avatar mstahv commented on August 10, 2024

Did you try with the exact branch I just referred or with something else? Latest hibernate version is 5.2.10.Final and it works just fine for me. I can't debug an arbitrary project of yours with these details.

If you want somebody to debug your application, you should look into our services https://vaadin.com/pricing

from spring-boot-spatial-example.

pushpanktugnawat avatar pushpanktugnawat commented on August 10, 2024

@mstahv a quick help did u just changed the hibernate version or you have done any code based changes as I have just checked didn't find any such changes so if i am missing something than please let me know.

from spring-boot-spatial-example.

punit412 avatar punit412 commented on August 10, 2024

@mstahv Thanks for your time and efforts. I really appreciate your work. My issue is resolved now.

from spring-boot-spatial-example.

mstahv avatar mstahv commented on August 10, 2024

Awesome! Would you share the solution, so @pushpanktugnawat would get it as well?

from spring-boot-spatial-example.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.