This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conversion JPA entities to XML output  RSS feed

 
Amit Arora
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JPA for persistence and using Hibernate as persistence provider. I want to get XML output from query. This is supported in Hibernate by using following code:



Where this 'elem' is DOM4J element which is XML element. This is working fine when I am using hbm files for storing meta-data, but whem I am using JPA annotation for storing metadata, code is giving following error.



What would be the solution for getting the result in XML from JPA entity?
 
Amit Arora
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That has been fixed in the new release 3.3
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!