I have two keys for
class A {
@Id
long key1;
@Id
long key2;
}
and I want to insert them (I am intentionality not using embeddedId )
how can I do it ?
What is the syntax inside createSQLQuery if exist one? Is there a way to insert using hql ?
thank you.
Please, check this: