How to implement Naminig Strategy in hibernate 3 with entity manager?

86 views Asked by At

I want to change the column name("size") for entity class, size is a keyword in oracle so i want to modify at runtime via NamingStrategy.

But unable to success.

I have added a property in my persistence.xml.

"<property name="hibernate.naming-strategy" value="com.group.myStrategy" />"    

I have extends DefaultNamingStrategy, no success the methods wasnt calling.

Please suggest how to implement in hibernate 3.2 ga.

Thanks in Advance.

0

There are 0 answers