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

HSEARCH-3395 Make the .reference() and .object() projections type-safe in the Projection DSL #1788

Merged
merged 2 commits into from Nov 5, 2018

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Nov 5, 2018

https://hibernate.atlassian.net//browse/HSEARCH-3395

Based on #1787 , which should be merged first.

@yrodiere yrodiere added the Waiting for other pull request Based on another PR that should be merged first label Nov 5, 2018
Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

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

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 12

Including the following issue(s) which could not be reported in line:

  1. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  2. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  3. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  4. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  5. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  6. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  7. Code Smell Code Smell: Remove this unused private "getSingleAccess" method. (more)

See all issues in SonarCloud

@yrodiere yrodiere force-pushed the HSEARCH-3395 branch 2 times, most recently from 157c959 to 06b6eea Compare November 5, 2018 14:18
Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

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

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 11

Including the following issue(s) which could not be reported in line:

  1. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  2. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  3. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  4. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  5. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  6. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)

See all issues in SonarCloud

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Let's wait for the CI feedback but as far AFAICS the changes look good.

Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

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

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 11

Including the following issue(s) which could not be reported in line:

  1. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  2. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  3. Code Smell Code Smell: Remove this unused "singleAccess" private field. (more)
  4. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  5. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  6. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  7. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)

See all issues in SonarCloud

Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

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

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 11

Including the following issue(s) which could not be reported in line:

  1. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  2. Code Smell Code Smell: Remove this unused "singleAccess" private field. (more)
  3. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  4. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  5. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  6. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  7. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)

See all issues in SonarCloud

@yrodiere yrodiere force-pushed the HSEARCH-3395 branch 2 times, most recently from 28fb6f0 to a7c9ee5 Compare November 5, 2018 15:04
Copy link

@sonarcloud sonarcloud bot left a comment

Choose a reason for hiding this comment

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

SonarQube analysis found issues:
Bug Bugs: 0
Vulnerability Vulnerabilities: 0
Code Smell Code Smells: 10

Including the following issue(s) which could not be reported in line:

  1. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  2. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  3. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  4. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  5. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)
  6. Code Smell Code Smell: Complete the task associated to this TODO comment. (more)

See all issues in SonarCloud

public interface JavaBeanSearchManagerBuilder extends PojoSearchManagerBuilder<PojoSearchManager> {
public interface JavaBeanSearchManagerBuilder {

// TODO other options (default query timeout, default query hints, ...)
Copy link

Choose a reason for hiding this comment

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

Code Smell Code Smell: Complete the task associated to this TODO comment. (squid:S1135)

See it in SonarCloud

@@ -15,8 +15,8 @@
/**
* @author Yoann Rodiere
*/
public interface HibernateOrmSearchQueryResultDefinitionContext<O>
extends org.hibernate.search.mapper.orm.jpa.HibernateOrmSearchQueryResultDefinitionContext<O> {
public interface FullTextQueryResultDefinitionContext<O>
Copy link

Choose a reason for hiding this comment

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

Code Smell Code Smell: Rename this interface. (squid:S2176)

See it in SonarCloud

@@ -15,7 +15,7 @@
/**
* @author Yoann Rodiere
*/
public interface HibernateOrmSearchQueryResultDefinitionContext<O> {
public interface FullTextQueryResultDefinitionContext<O> {

// TODO add object loading options: ObjectLookupMethod, DatabaseRetrievalMethod, ...
Copy link

Choose a reason for hiding this comment

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

Code Smell Code Smell: Complete the task associated to this TODO comment. (squid:S1135)

See it in SonarCloud

public interface SearchManagerBuilder<T extends SearchManager> {

// TODO other options (default query timeout, query hints, ...)
// TODO other options (default query timeout, default query hints, ...)
Copy link

Choose a reason for hiding this comment

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

Code Smell Code Smell: Complete the task associated to this TODO comment. (squid:S1135)

See it in SonarCloud

…ded objects when we create a SearchTarget

This is necessary if we want to create typed projections to references
and loaded objects (see following commits).
@yrodiere yrodiere merged commit bdb4908 into hibernate:master Nov 5, 2018
@yrodiere
Copy link
Member Author

yrodiere commented Nov 5, 2018

Merged, thanks!

@yrodiere yrodiere deleted the HSEARCH-3395 branch November 16, 2018 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Waiting for other pull request Based on another PR that should be merged first
Projects
None yet
3 participants