Jpa xmlcolumn mapping
Download
1 / 4

JPA XMLColumn mapping - PowerPoint PPT Presentation


  • 75 Views
  • Uploaded on

JPA XMLColumn mapping. JAXB dependency XML Schema xsd to JAXB XML bindings @XmlRootElement Required Annotations @Persistent @Strategy("org.apache.openjpa.jdbc.meta.strats.XMLValueHandler") CRUD. Query. Simple comparisons Navigate single value path Examples:

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' JPA XMLColumn mapping ' - delphina-malas


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Jpa xmlcolumn mapping
JPA XMLColumn mapping

  • JAXB dependency

    • XML Schema xsd to JAXB XML bindings

    • @XmlRootElement

  • Required Annotations

    • @Persistent

    • @Strategy("org.apache.openjpa.jdbc.meta.strats.XMLValueHandler")

  • CRUD


Query
Query

  • Simple comparisons

  • Navigate single value path

  • Examples:

    • "Select o from ProductOrders o where o.podetails.customer.name = ?1"

    • Select o from ProductOrders o where o.podetails.customer.type = ?1


Sample query test can be found under openjpa
Sample query test can be found under openjpa

openjpa-persistence-jdbc/src/test/

java/org/apache/openjpa/persistence/xmlmapping.query/

TestXMLCustomerOrder.java

Generated SQL for differenct platforms:

TestXMLCustomerOrder.db2

TestXMLCustomerOrder.oracle

TestXMLCustomerOrder.sqlserver


Future functionality
Future Functionality

  • Namespace declarations

  • Other predicates

  • Scalar functions

  • Multi-valued


ad