[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.rt.eclipselink] Re: Help using the Dynamic JPA

I am using onetoonemapping relationship and that does not seem to work.
anotherMap.setAttributeName(fieldName); --> real field id for the table
anotherMap.addTargetForeignKeyFieldName(fieldName, fieldName);--> The one to one relationship field id for the target and source field name
EntityProperty property = type.addProperty(anotherMap);


The part which seems to be missing is it has to get the name of the table for which this table has relationship to.

How we indicate that? In absense of that, it does not create a join table.

Thx
Ajay