Grab a reference on joining colunm when in a spring boot application
I am working on a spring boot project using kotlin and jpa
I am stack with following
Let us assume the we have a user and post table
Each user has multiple post
Now the normal behaviour is to create a relation ship by adding annotation onetomany in the user entity class
And that i have done and added
@joinColumn(name=uid)
and that is fine until now
The problem that i need a refernce to this joining column because I need to use it inside my code
Also i need to create a find method on this...