playframework / playframework/play1

Some errors when using @PersistenceUnit

Open
#1,125 2 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.