Greetings,
I'm trying to override GenericUserDAO for a MySQL database.
I created a subclass of GenericUserDAO named QRUserDAO and overrode the factory method MysqlDataAccessDriver.newUserDAO() by creating a subclass named QRDataAccessDriver.
I edited the conf/database/mysql/mysql.properties file so that it would load QRDataAccessDriver instead of MysqlDataAccessDriver.
However, my changes don't create a QRDataAccessDriver object. It turned out that there's another dao.driver=net.jforum.dao.mysql.MysqlDataAccessDriver property in jforum-custom.conf that is overriding the one in myqel.properties. If I remove it, I get the message
Looking in DatabaseWorkarounder it appears that net.jforum.dao.mysql.MysqlDataAccessDriver is hard-coded. If the class of the driver is anything other than MysqlDataAccessDriver, the driver is replaced and the configuration overridden.
So how does one replacing GenericUserDAO?
[originally posted on jforum.net by jbucanek]