I'm fairly new to JPA and having to work through an issue.
I've used Netbeans and JDeveloper both to generate entities from tables.
Now, these entities cross language boundaries via serialization methods exposed with Oracle's Coherence - meaning, entities are both serialized to and from C# .NET objects.
Due to this serialization, I can't have the backref/many to one child->parent relationship on the child otherwise I get a stack overflow.
I just want a unidirectional relationship mapped from table a to table b with no middle join table. Sure, the many to one exists but I don't want it (can't have it) mapped.
On the child entity, I just want the ID of the parent, not an object that references the parent. Just a field with parent ID.
Any help would be greatly appreciated.