Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Creating mapping dynamically

Hi Gaurav,

You can create any mapping in a customizer. For some examples of mappings take a look here:

http://fisheye2.atlassian.com/browse/~raw,r=4604/eclipselink/trunk/foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/models/employee/relational/EmployeeProject.java

  EclipseLink does not require any foreign keys in the database for our mappings.

-Tom

Gaurav Malhotra wrote:
Hi,

  Is it possible to create the OneToOne relationship for a field of an
entity using Customizer dynamically in EclipseLink? (I don’t want to create
an entity dynamically but only want to create relationship dynamically)

Is it mandatory to have to have forign key relationship in the db tables to
make OneToOne relationship?



Regards,
Gaurav Malhotra



Back to the top