This content has been marked as final.
Show 2 replies
-
1. Re: ora-00972
atodorov May 12, 2006 11:37 AM (in response to ramcisjboss)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...? -
2. Re: ora-00972
ramcisjboss May 17, 2006 3:48 AM (in response to ramcisjboss)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