org.hibernate.AnnotationException: Use of the same entity name twice: User

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via AppFuse JIRA by Marc Schipperheyn, 1 year ago
Use of the same entity name twice: User
via AppFuse JIRA by Marc Schipperheyn, 1 year ago
Use of the same entity name twice: User
via com.br by Unknown author, 1 year ago
Use of the same entity name twice: Usuario
via Stack Overflow by maxf130
, 2 years ago
Use of the same entity name twice: NnsNetzdaten
via Stack Overflow by hasan
, 2 years ago
Use of the same entity name twice: UserSet
org.hibernate.AnnotationException: Use of the same entity name twice: User
at org.hibernate.cfg.annotations.EntityBinder.bindEntity(EntityBinder.java:221)
at org.hibernate.cfg.AnnotationBinder.bindClass(AnnotationBinder.java:531)
at org.hibernate.cfg.AnnotationConfiguration.processArtifactsOfType(AnnotationConfiguration.java:452)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:268)
at org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.getConfiguration(AbstractComponentConfiguration.java:38)
at org.appfuse.mojo.HibernateExporterMojo.configureExporter(HibernateExporterMojo.java:196)
at org.appfuse.mojo.exporter.AppFuseGeneratorMojo.configureExporter(AppFuseGeneratorMojo.java:109)
at org.appfuse.mojo.HibernateExporterMojo.doExecute(HibernateExporterMojo.java:244)
at org.appfuse.mojo.HibernateExporterMojo.execute(HibernateExporterMojo.java:154)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

Users with the same issue

Once, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Know the solutions? Share your knowledge to help other developers to debug faster.