csmith12 wrote:
Not sure how that can be happening, but let me ask this then.
I have table A and table B, one to many relationship. I also have table C with many to one with both A and B. Could this be creating the kinds of dupe names that I am seeing?
It's more like:
Company
CompanyID
SalesPersonID
DeveloperID
CompanyName
Person
PersonID
PersonName
SalesPersonID and DeveloperID are both related to PersonID in a ManyToOne
The generator will generate fields based on Relations for you, but these will be called: "Person" (related via SalesPersonID) & "Person_" (related via DeveloperID) because both fields related to the Person table.
You then have to manually go in to the Designer (Edit Entity, Fields Mapped on Relations tab) and change "Person" to SalesPerson and "Person_" to Developer BEFORE you generate the code.
On the other side (in Person Entity) you will see:
Company and Company_ from the OneToMany opposite relationship...
Hope this helps!