Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsModel String as Foreign key constraint
https://www.eclipse.org/forums/index.php/mv/msg/236462/718294/#msg_718294
The relationship table has a from and to id that are represented as strings and previously all the one to one mapping for each entity was managed through application code rather than in the entity using the proper annotations.
The previous application clients need to retain the ability to write JPQL statements to these string fields. I was wondering if there was any way to in place convert these to enforcing one to one mapping via a foreign key constraint since JPA normally requires the entity rather than using a string key.
Thanks in advance! Please let me know if more explanation is required.
]]>Jonathan 2011-08-23T21:18:13-00:00