开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜