Hello all,

I need to define a relationship between two tables where the keys involved are unique, not primary (the PKs are useless for the join involved).
The relationship can't be inferred from the schema metadata because one of the tables is actually a view.

What I'm seeing in Modeler is a way to define a relationship on primary keys.
I don't see it offering me that on unique keys, nor on an arbitrary selection of fields (which was the last straw that I searched for).
Did I overlook something, or did I hit a limitation?

Well, I *could* work around the problem by defining a view that uses the actual join fields and carries the PKs, and I'd have a PK on at least one side of each join :-)
Except I'd like to avoid cluttering the database namespace with views created just for the sake of Cayenne.


Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 4 | next ›
Discussion Overview
groupuser @
postedAug 25, '11 at 10:37a
activeSep 5, '11 at 1:35p



site design / logo © 2022 Grokbase