dipaksavaliya / datanucleus-appengine

Automatically exported from code.google.com/p/datanucleus-appengine
0 stars 0 forks source link

1-N relation to abstract class using subclass-table inheritance causes exception #283

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
With the latest storageVersion there is no reason why an exception is thrown 
since we aren't using remote "FK's" in the element. We simply have the remote 
object with a particular parent. 

One option is to allow the UnsupportedOperationException from StoreFieldManager 
to be disabled when the user requests it (persistence property). That would at 
least be a starting point til the old storage version is totally ditched and we 
can move this plugin to have sensible structure without any baggage of 
FKXXXStore and DatastoreTable.

Original issue reported on code.google.com by googleco...@yahoo.co.uk on 7 May 2012 at 5:40

GoogleCodeExporter commented 8 years ago
Added persistence property 
datanucleus.appengine.throwExceptionOnUnexpectedPolymorphism
that defaults to "true" but if set to false will allow simple polymorphism to 
work

Original comment by googleco...@yahoo.co.uk on 7 May 2012 at 5:43