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-1146 Factory jpa integration and structural refactoring #1926

Merged
merged 1 commit into from
Jul 28, 2016

Conversation

akorneta
Copy link
Contributor

@akorneta akorneta commented Jul 25, 2016

What does this PR do?

Adds factory model objects, dtos, impls;
Adds factory manager;
Reworks factory dao interface;
Adds a new FactoryDao implementation based on JPA;
Adds tests for FactoryDao interface contract(TCKs).

What issues does this PR fix or reference?

codenvy/codenvy#392

Tests written?

Yes

@skabashnyuk, @evoevodin, @sleshchenko please review

*
* @param update
* factory update
* @return updated factory with links
Copy link
Member

Choose a reason for hiding this comment

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

are you sure that manager'll return factory with links

@skabashnyuk
Copy link
Contributor

  1. Logger for find method
  2. Rework IDE actions storage

@akorneta
Copy link
Contributor Author

  1. Added logger of FactoryDao#findByAttribute.
  2. We decide do not change IDE action store mechanism.(the model can be extended in that case we would have to do the same implementation mapping)

@skabashnyuk
Copy link
Contributor

ok


/**
* Convert legacy factory parameter to new the latest format
*
* @author Alexander Garagatyi
*/
public interface LegacyConverter {
void convert(Factory factory) throws ApiException;
void convert(FactoryDto factory) throws ApiException;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe it should use FactoryImpl instead of dto?

@akorneta akorneta merged commit 81abc9b into jpa-integration Jul 28, 2016
@akorneta akorneta deleted the factory_jpa branch July 28, 2016 06:47
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.

None yet

4 participants