Hi Everyone!
I have an issue with the composite Key, i know it has been discussed over and over again, but i really need at least a workaround for the problem. I hope sombody here can help me.
I have a database where im forced to use Composite Primary keys bcause everything is based on clients, there can be plenty of them and every client has his own Addresses, Contacts and so on...
Since hibernate is not able to autoincrement one of the Values of the Composite keys i would need a practicable workaround but couldnt find one. I even found a closed and fixed Jira regarding that problem but still its not possible. I found some workarounds using interceptors, custom User types and custom generators but wasnt able to fully understand them.
Can anyone help me with that problem or offer me a solution where i dont have to use Composite Keys?
I'd really appreciate that!
Greets Reggie
|