Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » JPA - String attribute linked to xml type column
JPA - String attribute linked to xml type column [message #1774510] Mon, 16 October 2017 15:16
Mike Figo is currently offline Mike FigoFriend
Messages: 1
Registered: October 2017
Junior Member
Hi,

i'm have a JPA entity which is linked to a DB2 table. One of the attributes is a String and is linked to a column of XML type.

@Column(name = "SEARCH_CRITERIA", nullable = false)
private String searchCriteria;


When selecting the records, everything goes right but this one column which returns a reference : com.ibm.db2.jcc.am.re@8cc92e26

openJPA used to return the content as a String :
"<person>
<name>John</name>
<age>30</age>
<job/>
</person>"


How do i get the same result using EclipseLink ?

Thank you !

(Techs used : Java 8, JPA 2.1, Websphere 9, EclipseLink 2.5.2)
Previous Topic:Add @Transient annotaion on the dynamically generated entity field using eclipselink
Next Topic:complex merge fails with IntegrityConstraintException <SOLVED>
Goto Forum:
  


Current Time: Tue Mar 19 08:42:57 GMT 2024

Powered by FUDForum. Page generated in 0.01566 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top