Are we able Execute INSERT STATEMENT inside hibernate CreateSQLQUERY
I have two k开发者_StackOverfloweys 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:
- Using a SQLQuery
- createQuery examples
精彩评论