True, i should have posted it right at the beginning. But i was shure it is a very prevalent mistake The problem is that the column that should not be null is not inserted at all (visible in the second listing).
Hi,
i tried both suggestions and this are the results.
The test itself is the same for both options.
OPTION 1
-> PROBLEM : Still have null inserts for the key values.
BTW i tried to use the Hibernate instead of eclipselink with the following result.
OPTION 2
-> PROBLEM : i still have null inserts for the key values + two further columns in the tire table (which should be managed only in the Bike_Tire table)
For now, stick to the original issue, meaning stick with EclipseLink as your JPA provider.
Did you set the value for Tire position?
Instead of saying it does not work, use a DEBUGGER if you can't read the code and set a break at Map in your MyTest class, then examine
the state of tireFront and tireBack objects.
A quick read through of this and the first question that pops into my head is, what is the actual name of the column in the database?
So far in this thread I've seen:
TIRE POSITION (I don't know if it's a sign of my age or something, but column names with spaces make me itch).
TIRE_POSITION
tirePosition
Post by:autobot
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
a bit of art, as a gift, the permaculture playing cards