1 Reply Latest reply on Jun 12, 2009 9:26 AM by vjtech20nn

    Database independent persistence

      Hi,
      I have some persistent entities that need to be run on two separate JBoss servers. One of which is connected to an oracle database and the other connected to a mssql database.

      This causes problems with the database specific primary key generation and the only way I can find round it is to create separate bean instances for each server. Is there another way? Could I extend the @GeneratedValue class and provide fucntionality to check which database is used and then provide the correct implementation.

      Thanks.