Skip to main content

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: 158
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?

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: 1304
Registered: July 2009
Senior Member
You can use a native SQL query to access the raw, unconverted data.
Previous Topic:Persist @ElementCollection Map - The list of fields to insert into the table is empty
Next Topic:EclipseLInk level 2 caching
Goto Forum:

Current Time: Tue Oct 16 05:41:27 GMT 2018

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

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

Back to the top