MountainClimb / datanucleus-appengine

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

Relationships in abstract base classes don't work #171

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
  @PersistenceCapable(identityType = IdentityType.APPLICATION)
  @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE)
  public abstract class HasFoo {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    @Element(dependent = "true")
    private List<Foo> fooList = new ArrayList<Foo>();
  }

  @PersistenceCapable(identityType = IdentityType.APPLICATION)
  public static class Bar extends HasFoo {
    @Persistent(dependent = "true")
    Baz baz;
  }

  @PersistenceCapable(identityType = IdentityType.APPLICATION)
  public class Baz extends HasFoo {
  }

  @PersistenceCapable(identityType = IdentityType.APPLICATION)
  public class Foo {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
  }

Original issue reported on code.google.com by max.r...@gmail.com on 9 Dec 2009 at 8:57

GoogleCodeExporter commented 8 years ago

Original comment by max.r...@gmail.com on 10 Dec 2009 at 7:48

GoogleCodeExporter commented 8 years ago

Original comment by max.r...@gmail.com on 26 Jan 2010 at 12:19