I'm using Hibernate with HSQLDB via JPA in Eclipse.
I want to have an array column, so I'm trying to follow the instructions at
viewtopic.php?t=946973One of the compile problem is that I need a reference to the SessionFactory so I can make this method work:
Code:
public static Settings getSettings(){
return ((SessionFactoryImpl)factory).getSettings();
}
Since my existing code can use the database, I figure there must be an instance of the SessionFactory SOMEWHERE.
How do I get a reference to it?
(Has anyone else updated this UserType code to something recent? It looks like I'll also have to implement nullSafeSet() and nullSafeGet() for the types in this very old class.)