error « Glassfish « JPA Q&A





1. what does this error mean: org.hibernate.DuplicateMappingException ...?    stackoverflow.com

I'm trying to force JPA/Hibernate to generate and use only lowercase tablenames. I've implemented a NamingStrategy like this:

public class MyNamingStrategy extends DefaultNamingStrategy {

  @Override
  public String classToTableName(String className) {
 ...

2. Hibernate, EJB 3 And GlassFish 3.0.1 integration error    coderanch.com

I'm making an Enterprise Application, which part is Application Client. I've got EJB project that I want to use Hibernate for ORM. The problem is when I add Hibernate support to EJB project I've got the following error: [#|2010-08-06T19:49:37.064+0200|SEVERE|glassfish3.0.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=28;_ThreadName=Thread-1;|Exception while invoking class org.glassfish.appclient.server.core.AppClientDeployer prepare method java.lang.RuntimeException at org.glassfish.javaee.core.deployment.JavaEEDeployer.prepare(JavaEEDeployer.java:213) at com.sun.enterprise.v3.server.ApplicationLifecycle.prepareModule(ApplicationLifecycle.java:644) at org.glassfish.javaee.full.deployment.EarDeployer.prepareBundle(EarDeployer.java:269) at org.glassfish.javaee.full.deployment.EarDeployer.access$200(EarDeployer.java:79) at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:131) at org.glassfish.javaee.full.deployment.EarDeployer$1.doBundle(EarDeployer.java:129) at org.glassfish.javaee.full.deployment.EarDeployer.doOnBundles(EarDeployer.java:197) at ...