1. modificare hibernate-reveng.xml, adaugare declaratii:
2. Realizarea conexiunii cu BD (hibernate.properties)
3. Rularea plugin-ului
> mvn clean generate-sources -P reveng
4. Commit fisiere modificate, punctual
<schema-selection match-schema="SCHEMA_NAME" match-table="TABLE_NAME" />
<table name="TABLE_NAME" schema="SCHEMA_NAME"> <primary-key> <key-column name="PK_COLUMN_NAME" /> </primary-key> </table>
2. Realizarea conexiunii cu BD (hibernate.properties)
hibernate.connection.driver_class=oracle.jdbc.OracleDriver
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.connection.url=jdbc:oracle:thin:@//URL:PORT/DB_NAME hibernate.connection.username=OWNER hibernate.connection.password=PASS
3. Rularea plugin-ului
> mvn clean generate-sources -P reveng
4. Commit fisiere modificate, punctual