Hibernate: Mapping for Oracle and PostgreSQL
===

I have a requirement wherein I need to support both Oracle and PostgreSQL. I have following hibernate mapping -


    <id name="id" type="java.lang.Integer">
        <column name="id"  not-null="true" />
        <generator class="native">
            <param name="sequence">`OneTimeAccessToken_id_seq`</param>
        </generator>
    </id>

However this does not work for Oracle, since it has that backquote. If I remove the backquote, it fails for PostgreSQL. Any inputs on how to provide support for both databases.
