On 5 March 2014 09:04, <[email protected]> wrote: > Hi, > > I have database schema is present already. And I have created domain > objects mapping to the tables with JDO annotations. > > I have a table with two foreign keys already present, one to the other > table and second to the self. And there are respective domain objects > mapped to these tables. > > When I start Isis-project webappp with autoCreateSchema= true, it is > creating again two more foreign keys constraints with different names > > Why it is creating foreign keys when already present? >
I would imagine because it uses the constraint names to match. > How to avoid this issue? Please help. > It is possible to specify the constraint name, I reckon that'll fix it. Check the JDO docs [1] Dan [1] http://www.datanucleus.org/products/datanucleus/jdo/orm/constraints.html > BR > Ranganath Varma > >
