• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Will the Java portablity of JPA work to Microsoft?

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I create a database application using JPA with MySQL database, is it possible to port it to Microsoft SQL Server?

(If this is possible, I wonder how it is possible? Is Microsoft providing a JPA implementation for SQL Server?)
 
Bartender
Posts: 4116
72
Mac TypeScript Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Namitha karupaiya wrote:If I create a database application using JPA with MySQL database, is it possible to port it to Microsoft SQL Server?


Yes, Of course that's the hole point of JPA (portability across different DBs and/or different persistence providers).

... Is Microsoft providing a JPA implementation for SQL Server?)


No. It's the vendor (your JPA provider) takes care of that.
 
Namitha karupaiya
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There is one implementation (according to my knowledge) for JPA which is Eclipselink, is that it for all databases? How this works?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hibernate and OpenJPA are other implementations of JPA besides EclipseLink. Somewhere in the JPA setup (generally in the persistence.xml file) you need to up some properties that tell the implementation which DB you're using.
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Namitha karupaiya wrote:There is one implementation (according to my knowledge) for JPA which is Eclipselink, is that it for all databases? How this works?


EclipseLink is the reference implementation for JPA (the same way that Tomcat is the reference implementation for Servlet Container). Just like there are other Servlet Containers that properly implement the Servlet Container specs, there are other products (like Hibernate) that implement JPA.
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic