Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Embedded with base class has null fields #95

Open
threeseed opened this issue Aug 18, 2012 · 1 comment
Open

Embedded with base class has null fields #95

threeseed opened this issue Aug 18, 2012 · 1 comment

Comments

@threeseed
Copy link

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
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants