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:Multi tenancy with schema per tenant
Goto Forum:
  


Current Time: Sat Dec 16 18:56:12 GMT 2017

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

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