Is there a posibility to define with JPA different column types depending on the used database?
I need to store the id as uuid and it must be protable. That's the problem. PostgreSQL has 'uuid', MSSQL 'uniqueidentifier' and Oracle has nothing, there must be used 'RAW', I think.
Have anybody an idea and can help me?
Edit: Currently the ids are generated with java.util.UUID and stored in the database as varchar. But because of performance problems with that data type I want to store the ids as a uuid type. For Oracle must use the RAW type because no uuid type exist. How can I tell JPA use uuid type with PostgreSQ/MSSQL and RAW type with Oracle?