Possible Duplicate:
multiple database support for same JPA classs
I have a table
Users( id , name);
Now i want to create the JPA class for the table so that it can support both database.
the id should be auto increment.
Kindly help me out in achieving same by providing some example.
Thanks in advance.
You should pick generation type AUTO. I only used .hbm mappings, but my understanding that with annotations it should look something like that: