Copy link to clipboard
Copied
In my app, I'm using the Hibernate Criteria API quite extensively. For one of my queries, I'd like to implement something described here:
http://stackoverflow.com/questions/554481/how-to-get-sql-from-hibernate-criteria-api-not-for-logging
I can get most of the way, but am hung up on the parts where the SessionFactoryImpl is cast to one of its implemented interfaces (SessionFactoryImplementor), and on a similar technique later in the code (casting SingleTableEntityPersister as OuterJoinLoadable).
My question is whether or not this kind of casting is even possible in ColdFusion and, if so, exactly how one would go about it.
I appreciate any help that anyone can provide.
Thanks!
Copy link to clipboard
Copied
You can probably ignore the casting, it is needed by the Java Compiler but CF uses reflection to invoke the java methods so casting should not be necessary.