-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-1810 Create JPA based SshDao implementation #1975
Conversation
requireNonNull(service); | ||
try { | ||
EntityManager manager = managerProvider.get(); | ||
List<SshPairImpl> resultList = manager.createQuery("SELECT pair " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need result list varialbe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simplified
@akorneta @evoevodin ? |
Build # 1331 - FAILED Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1331/ to view the results. |
<dependency> | ||
<groupId>com.google.inject.extensions</groupId> | ||
<artifactId>guice-persist</artifactId> | ||
<scope>compile</scope> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the compile
scope is defined explicitly?
ok for me |
import javax.persistence.Index; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.OneToMany; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import?
Build # 1334 - FAILED Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1334/ to view the results. |
LGTM |
ok for me |
- Created SshDao on JPA - Added 'owner' to SshPairImpl - Created TCK for JPA and local implementations
What does this PR do?
Adds JpaSshDao and TCK to test it, as well as local DAO implementation.
What issues does this PR fix or reference?
CHE-1810
Previous Behavior
LocalSshDao previously stored as map of pairs by owner.
New Behavior
SshImpl now contains field owner. LocalSshDao now stores pairs in list.
Tests written?
Yes
Docs requirements?
No