Skip to content
This repository was archived by the owner on Jan 13, 2023. It is now read-only.

skachkov #5

Closed
wants to merge 6 commits into from
Closed

skachkov #5

wants to merge 6 commits into from

Conversation

hamster4n
Copy link

jpa-and-hibernate homework

Copy link
Collaborator

@tboychuk tboychuk left a comment

Choose a reason for hiding this comment

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

Good. 👍

@@ -22,29 +23,50 @@ public Account findOne(Long id) {
em.getTransaction().begin();

//todo: find account by id using EntityManager

Account queryAccount = em.createQuery("select a FROM Account a where a.id = :id", Account.class)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Incorrect. This functionality is already implemented in em.find()

@tboychuk tboychuk closed this Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants