This content has been marked as final.
Show 1 reply
-
1. Re: EJB3NamingStrategy
ramcisjboss May 20, 2006 5:18 AM (in response to ramcisjboss)I ask and I answer alone.
There is a problem with Jboss version.
Now all works fine. here a solution/** * */ package de.laliluna.library; import org.hibernate.cfg.EJB3NamingStrategy; import org.hibernate.util.StringHelper; /** * @author RamcisJBOSS * */ public class NamingStrategy extends EJB3NamingStrategy { // The tablename is simply found by appending a "s" to the classname public String classToTableName(String className) { return StringHelper.unqualify(className) + "s"; } }