BlackLabs / play-morphia

Provide mongodb access service to play.db.Model via Morphia
Apache License 2.0
130 stars 51 forks source link

Embedded with base class has null fields #95

Open nadenf opened 12 years ago

nadenf commented 12 years ago

Take an embedded class as such:

@Embedded
public class A extends BaseA {
  public String stringA;
  public String stringB;
}

public class BaseA extends Object {
  public String stringC;
} 

It will store stringA, B, C in MongoDB just fine. But when the object is read from MongoDB stringC is null.

greenlaw110 commented 11 years ago

Can't reproduce the issue. Can you check the test case at https://github.com/greenlaw110/play-morphia/blob/master/samples-and-tests/unit-tests/test/I95Test.java?