-
Notifications
You must be signed in to change notification settings - Fork 73
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
@OneToMany doesn't select join column because of missing join statement #84
Comments
I also wonder, in this scenario, is there any way for me to just rewrite or add some extra xml in my mappers folder in order to complete/repair the mapping ? That would be a good information to know. |
Hi @hatunet any update on this ? |
I have upgraded to spring-boot 1.5.1.RELEASE and now how spring-data-commons 1.13.RELEASE according to #98 I was able to start without my error but it seems the one to many have some "case" and mapping issues. @OneToManyspring-data-mybatis commit version : 3b6fba0 Test repository available here
Test
ExpectedHTTP 200 Result
|
You have a problem with the usage, and you can see this pr: kopax/spring-data-mybatis-testing#2 this pr include @OneToMany , rest projection and extend-xml issues. |
annotation @OneToMany doesn't join column
It appear the @OneToMany association doesn't work as expected.
version
I am using commit.
This is how I did the join table mapping, in
SiteService.java
:Result
Produce an empty array for
siteFunctionList
Expected result
Produce an array using database data for
siteFunctionList
The select method appear to not add any jointure for this table.
(but @manytoone association seems to work fine so far.)
The xml generated render an empty
<sql id="SELECT_CONDITION_INNER"></sql>
What is it use for ?
There is this generated for the mapping by the annotations:
But nothing for selecting the field.
The text was updated successfully, but these errors were encountered: