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

Fix/create reference with descriptor using inheritance #13

Merged
merged 3 commits into from May 28, 2018

Conversation

chrishartl
Copy link

No description provided.

@chrishartl chrishartl requested a review from rPraml May 28, 2018 12:24

Ebean.save(shelter);

BeanDescriptor<Animal> animalDesc = spiEbeanServer().getBeanDescriptor(Animal.class);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das ist leider noch kein richtiger Test, da BeanDescriptor "ebeaninternal" ist. Hier solltest du einen Weg finden, der deine Query nachbildet.

// value, just select the id property and discriminator column (auto added)
DefaultOrmQuery<T> query = new DefaultOrmQuery<>(this, ebeanServer, ebeanServer.getExpressionFactory());
return query.select(getIdProperty().getName()).setId(id).findOne();
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Der Code kommt jetzt doppelt vor

@rPraml rPraml merged commit a23cf43 into master May 28, 2018
rPraml pushed a commit that referenced this pull request May 28, 2018
* FIXED: Discriminator must be ask for inherited classes

* Fixed: Compile

* Refactoring and Testing
@rPraml rPraml deleted the FIX/create-reference-with_descriptor branch September 24, 2018 16:55
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

Successfully merging this pull request may close these issues.

None yet

2 participants