Skip to content

Conversation

@rlconst
Copy link
Contributor

@rlconst rlconst commented Apr 30, 2024

I tried to create two un-bound repositories with raw queries and it perfectly works. Either documentation is outdated or there are some pitfalls.

Copy link
Contributor

@sdelamo sdelamo left a comment

Choose a reason for hiding this comment

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

Could you add a test of what now works and it used not work?

@rlconst rlconst changed the base branch from 4.7.x to 4.8.x May 10, 2024 06:41
@rlconst
Copy link
Contributor Author

rlconst commented May 10, 2024

@sdelamo I added example of headless repos

@rlconst rlconst changed the title Update repositories.adoc Add note that headless repositories are possible May 10, 2024
@rlconst
Copy link
Contributor Author

rlconst commented May 10, 2024

I'm not sure if oracle migration is relevant to my changes

@graemerocher
Copy link
Contributor

seems the syntax for creating duality JSON views in Oracle changes in the latest published docker images, we will need to investigate but this seems unrelated yes

@dstepanov
Copy link
Contributor

Maybe the text can be rephrased to explain that you cannot use GenericRepository and friends without an entity.

@sdelamo sdelamo requested a review from dstepanov May 13, 2024 09:33
@radovanradic
Copy link
Contributor

seems the syntax for creating duality JSON views in Oracle changes in the latest published docker images, we will need to investigate but this seems unrelated yes

Yes, latest oracle-free image is giving this error. Looking now for changes needed to fix it.

@radovanradic
Copy link
Contributor

seems the syntax for creating duality JSON views in Oracle changes in the latest published docker images, we will need to investigate but this seems unrelated yes

Yes, latest oracle-free image is giving this error. Looking now for changes needed to fix it.

@rlconst I have pushed fix to 4.8.x, please try pulling latest changes and the test should pass.

@mikehearn
Copy link
Contributor

This doesn't seem right. I can't do this, which is why I filed issue #3398

e.g.

@JdbcRepository(dialect = Dialect.ORACLE)
public interface DeletionTestQueries {
    @Query(value = "SELECT COUNT(*) FROM xxx WHERE yyy", nativeQuery = true)
    int countActivations(String id);

    @Query(value = "DELETE FROM xxx WHERE id = :id", nativeQuery = true)
    void deleteThread(String id);
}

With or without nativeQuery = true, I get the error about needing a repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

6 participants