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

CHE-1810 Create JPA based SshDao implementation #1975

Merged
merged 1 commit into from
Jul 28, 2016

Conversation

mkuznyetsov
Copy link
Contributor

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

requireNonNull(service);
try {
EntityManager manager = managerProvider.get();
List<SshPairImpl> resultList = manager.createQuery("SELECT pair " +
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

simplified

@skabashnyuk
Copy link
Contributor

@akorneta @evoevodin ?

@codenvy-ci
Copy link

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>
Copy link
Contributor

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?

@akorneta
Copy link
Contributor

ok for me

import javax.persistence.Index;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused import?

@codenvy-ci
Copy link

Build # 1334 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/1334/ to view the results.

@sleshchenko
Copy link
Member

LGTM

@voievodin
Copy link
Contributor

ok for me

- Created SshDao on JPA
- Added 'owner' to SshPairImpl
- Created TCK for JPA and local implementations
@mkuznyetsov mkuznyetsov merged commit d41718b into eclipse-che:jpa-integration Jul 28, 2016
@mkuznyetsov mkuznyetsov deleted the jpa branch July 27, 2017 14:11
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.

6 participants