Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0.5
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using: Oracle 10.g 1
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
I am using Andromda 3.1 RC1 to generate Hibernate schema.
Andromda allows me to select different ways to implement the inheritance
hierarchy, but it seems that
union-subclass suites us. However,
Hibernate generates foreign key constraint names that are too long to
Oracle (Andromda has a property that controls entity table names). The
constraint names are of form:
dessec6a2d0e56e0a54a923af18ae54a257eb
Actually the name should be DESCRIBABLE_SECURITY_FKCc6a2d0e56e0a54a923af18ae54a257eb,
but I tried Andomda's feature @andromda.persistence.foreignkey.constraint that let's you change
the name (I used name DESSEC). But when you count the characters,
it is still too long (Oracle has limit 30).
So question is: is there any way to make Hibernate use some other
way to name the constraints; running counter or similar?