MountainClimb / datanucleus-appengine

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

Non-persistent base classes do not work #169

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
  public static class NondurableParent {
    private Long id;

    private String str;

    public Long getId() {
      return id;
    }

    public void setId(Long id) {
      this.id = id;
    }

    public String getStr() {
      return str;
    }

    public void setStr(String str) {
      this.str = str;
    }
  }

  @PersistenceCapable(identityType = IdentityType.APPLICATION)
  public static class DurableChild extends NondurableParent {

    @Override
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    public Long getId() {
      return super.getId();
    }

    @Override
    @Persistent
    public String getStr() {
      return super.getStr();
    }

    @Override
    public void setId(Long id) {
      super.setId(id);
    }

    @Override
    public void setStr(String str) {
      super.setStr(str);
    }
  }

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

GoogleCodeExporter commented 8 years ago

Original comment by max.r...@gmail.com on 9 Dec 2009 at 1:32

GoogleCodeExporter commented 8 years ago

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