Well.. unfortunately Oracle will not allow you to use column names, longer than 30 chars. I suppose this is the problem you encounter. Check the length of your property name and consider the naming strategy you use?
For example, using org.hibernate.cfg.DefaultComponentSafeNamingStrategy and several levels of embedded properties, can easily interfere with this Oracle limitation when trying to generate names like "customer_address_municipality_id":(
If this is not the case, it's not a bad idea to paste some code, logs...?
Hi, i tried to use the safe strategy, but it doesn't work, i got the same problem, i think that i missed some properties. here is my persistence. xml file
<persistence> <persistence-unit name="NtimBizAppDataLayer"> <jta-data-source>java:OracleDS</jta-data-source> <properties> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> <property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.DefaultComponentSafeNamingStrategy" /> </properties> </persistence-unit> </persistence>
Please can you give a short example.
thx for your help