playframework / playframework/play1
Some errors when using @PersistenceUnit
Open
@asolntsev is already working on this.
Since May 9, 2017.
- Dominant language
- Java
- Stars
- 1.6k
- Forks
- 671
- Avg merge
- 12d 15h
- Merged PRs (30d)
- 1
Description
When the entities annotationed by @PersistenceUnit, some errors will occured when load data by yml or saving data where entities have relation to each other, like O2M/M2M...
The reason is, in GenericModel:
public static T edit(ParamNode rootParamNode, String name, Object, o, Annotation[] annotaions) {
return edit(JPA.DEFAULT, rootParamNode, name, o, annotations); //here use JPA.DEFAULT always.
}
Please fix it, thank you! (note: Maybe more code need to review, but i just find this)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.