robertsv wrote:
1) how cann i make hibernate.cfg.xml configurable.
for example:
<many-to-one name="user" class="User"
insert="false" update="false">
<column name="user_id"/>
<formula>'TYPE'</formula>
</many-to-one>
the string 'TYPE' should be readed from property file. it should not be hardcoded in cfg.
Don't know for this one. Not sure it's possible.
robertsv wrote:
2) is it possible to see all queries with values, which are executed by hibernate.
Two solutions :
* activate org.hibernate.type package logs. You'll see what value is attached to each parameter (see the reference documentation for more details about this).
* configure p6spy proxy jdbc driver (search p6spy on google for more infos about this)