Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] DB2 - unique constraint names too long

Hi,

We plan to use EclipseLink in our project as a JPA platform. Our application must run on Oracle and DB2 databases. We will also use the database object auto generation feature. With ORACLE everything works fine. But under DB2 the names for unique constraints (composed of 2 or more columns) are rejected as too long and the constraints are not created. The constraint is created after manual modification of its name. Unfortunately there is no name attribute in the UniqueConstraint annotation.

 

Are there any possibilities to solve this problem?

 

 

Best Regards,

Peter

 


Back to the top