5

Where can I get complete set of javax.persistence properties. which I can use in persistence.xml in JPA 2.1.

I have tried more that half a day. I have got only few properties from JPA specification and remaining properties are vendor specific. But I want all JPA properties, is there any class or interface which holds all of them? all of the sites are showing vendor specific properties either Hibernate or EclipseLink. But to achieve vendor independency I have to use JPA properties only.

Jagadeesh
  • 862
  • 7
  • 23
  • Have you tried: https://www.google.com/webhp?ion=1&espv=2&ie=UTF-8#q=jpa+persistence.xml+properties+reference – Donovan Muller Apr 23 '15 at 12:09
  • I have tried more that half a day. I have got only few properties from JPA and remaining properties are specified in vendor specific properties. But I want all JPA properties, is there any class or interface which holds all of them? – Jagadeesh Apr 23 '15 at 12:22
  • Just now I have gone through your link also @DonovanMuller but all of the sites are showing vendor specific properties either Hibernate or EclipseLink. But to achieve vendor independency I have to use JPA properties only. – Jagadeesh Apr 23 '15 at 12:31
  • [Here](http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/persistence/index.html) is the XML Schema of `persistence.xml` for the various JPA spec versions. For a visual view of the XSD, go [here](http://xmlgrid.net/view/xsdViewer.html) and use the relevant URL for the JPA version you're using. Also see [here](http://docs.oracle.com/cd/E16439_01/doc.1013/e13981/cfgdepds005.htm) for the Oracle guide on how to configure your `persistence.xml`. – Donovan Muller Apr 23 '15 at 12:37

2 Answers2

3

Foot of this page ("Standard JPA Properties") or just look in the JPA spec!

Neil Stockton
  • 11,383
  • 3
  • 34
  • 29
0

The definitive reference would be the XSD document for persistence.xml. Go here and select the relevant link for the version of JPA you are using.

For a more visual view, you can use XMLGrid's XSD viewer (thanks to this answer). Choose "By URL" and paste the relevant XSD link as per above. You will then be able to view all possible (JPA specific) options available to you.

enter image description here

Community
  • 1
  • 1
Donovan Muller
  • 3,822
  • 3
  • 30
  • 54
  • 2
    except that the XSD lists explicit parts of the persistence-unit, NOT properties (where is javax.persistence.jdbc.* for example?). He wants what goes into "properties", nothing else – Neil Stockton Apr 23 '15 at 19:32