Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Access raw unmapped data from Entity
Access raw unmapped data from Entity [message #1737780] Tue, 12 July 2016 20:03 Go to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 156
Registered: October 2010
Location: Austria
Senior Member
I have an @Entity where I use some AttributeConverters to custom map Enumerations to database values. Now I want to write a test, to see whether the value written to the database is as expected.

The entity itself only refers to the Enumeration type, not the raw String character stored in the DB.

Is there a way for me to access the raw database data for an entity, that is leaving out the mapping?

Thanks!
Re: Access raw unmapped data from Entity [message #1738872 is a reply to message #1737780] Mon, 25 July 2016 16:10 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1274
Registered: July 2009
Senior Member
You can use a native SQL query to access the raw, unconverted data.
Previous Topic:SQL generated even for FetchType.LAZY reference
Next Topic:Criteria OrderBy
Goto Forum:
  


Current Time: Mon Dec 11 04:01:45 GMT 2017

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

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