Hibernate produce different SQL for every query

前端 未结 3 2118
野趣味
野趣味 2021-01-01 12:32

I\'ve just tested my application under the profiler and found out that sql strings use about 30% of my memory! This is bizarre.

There are a lot of strings like this

3条回答
  •  心在旅途
    2021-01-01 12:58

    No... you can generate you common query inside the hibernate. The logic behind is to mapping with table and fetch the record from there. It is used common query for all the database. Please create a common query like that :

    Example :

    select t.Id as Id4305_0_,...... from t where t.Id=?
    

提交回复
热议问题