1 Reply Latest reply on Sep 6, 2012 10:14 PM by pete_freitag

    Cast to Java Interface

    existdissolve Level 2

      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-f or-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.