I'm trying to get around this lazy one to one loading issue using many to one.
@ManyToOne( cascade = CascadeType.ALL, fetch = FetchType.LAZY, optional = true )
@PrimaryKeyJoinColumn( name = "X_ID", referencedColumnName = "X_ID" )
Now, I don't have another column I can use to act as a join column for this specific entity and I have no control over the schema, I need to work with what I have.
So I'm trying to make use of the primary key to do this. I have tried using @JoinColumn with the primary key and this still doesn't result in lazy loading.
When I use the above configuration I constantly get it is looking for a the column thisEntity . targetEntityId should it not use the ones I specify instead of trying to derive it?
|