rsapre wrote:
Hi , I would like to see exactly what kind of SQL statements will be executed when you use a mapping attribute in the hibernate documentation. it does not make any sense to exlain meaning of attributes like one-to-many or fetch="join" or lazy="true" without showing the kind of sql statements that are expected to be executed. We have to completely execute stuff to know what it is going to do. Every Attribute MUST be explined with EXACT SQL STATEMENT THAT IS GOING TO BE GENERATED. Document is totally OBSCURE without this- Thanks
hello friend,
what you are asking about is impossible because Hibernate is an abstract O/R-layer. The SQL being generated depends on the dialect.
Also the rendering of the SQL-statement is a complex-process, it's impossible to give a 1:1 representation.
If you need total control use SQL instead of HQL.
Hope that helps.