Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Unassigned
Reporter: Feliks Khantsis
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Store RDBMS

relation-discriminator extension should work with N-1 relationships

Created: 05/Nov/12 09:47 PM   Updated: 08/Nov/12 10:43 AM
Component/s: ORM, Schema, SchemaTool
Affects Version/s: 3.1.1, 3.1.2
Fix Version/s: None

File Attachments: 1. Zip Archive (2 kB)

Datastore: MySQL

 Description  « Hide
relation-discriminator-column should apply to n-1 join tables. Currently, only ElementContainerTable deals with it, which means that the parent must have a Collection of children for it to work. Since N-1 is a subset of N-M, I think it should be fairly trivial to implement this issue

Sort Order: Ascending order - Click to sort in descending order

Andy Jefferson added a comment - 07/Nov/12 09:27 AM
If its trivial you could easily download the code and generate a patch to do this, and attach it to this issue.

Feliks Khantsis added a comment - 08/Nov/12 10:43 AM
Well, I looked into it, but it's trivial in theory. In practice, there are many assumptions in the code that would need to be changed.