RE: Hibernate3 plugin : problem with mapping generatting

2008-08-26 Thread Johann Reyes
Hi

That's explained here

http://www.velocityreviews.com/forums/t298010-jboss-ide-using-hibernate-tool
s-getting-jdbcbinderexception.html

Basically you need to specify your schema in a hibernate.reveng.xml file.

Regards

Johann Reyes


-Original Message-
From: MedElb [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 10:15 AM
To: Maven Users List
Subject: Hibernate3 plugin : problem with mapping generatting

Hi all

i'm using Hibernate3 plugin for generation mapping classes and HBM for an
oracle schema
the probleme that the goal mvn hibernate3:hbm2cfgxml or the the other vlable
goal checks also system table
and the exceution take many time, at the and i get that trace error :



16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.DDL_TEXT t:CLOB l:
255 p:19 s:2 n:true id:false] to [clob]
16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.DDL_NUM t:NUMERIC
l:255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780 DEBUG
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrategy - Default type
found for [SYS._ALL_INSTANTIATION_DDL.PHASE t:NUMERIC l:
255 p:22 s:0 n:false id:false] to [big_decimal]
16:05:50,780  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up connection pool: jdbc:@oracle:thin:@url:1521:SIDNAME
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] Duplicate class name 'AllRepcolumn' generated for
'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name where generated
for 'org.hibern
ate.mapping.Table(SYS._ALL_REPCOLUMN)'
[INFO]

[INFO] Trace
org.hibernate.cfg.JDBCBinderException: Duplicate class name 'AllRepcolumn'
generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'. Same name
 where generated for 'org.hibernate.mapping.Table(SYS._ALL_REPCOLUMN)'
at
org.hibernate.cfg.JDBCBinder.createPersistentClasses(JDBCBinder.java:166)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:89)
at
org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfigu
ration.java:42)
at
org.codehaus.mojo.hibernate3.configuration.JDBCComponentConfiguration.doConf
iguration(JDBCComponentConfiguration.java:67)
at
org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfiguration.ge
tConfiguration(AbstractComponentConfiguration.java:56)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.configureExporter(Hiberna
teExporterMojo.java:197)
at
org.codehaus.mojo.hibernate3.exporter.Hbm2CfgXmlExporterMojo.configureExport
er(Hbm2CfgXmlExporterMojo.java:62)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.doExecute(HibernateExport
erMojo.java:270)
at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateExporter
Mojo.java:149)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:447)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:493)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:463)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]

[INFO] Total time: 3 minutes 23 seconds
[INFO] Finished at: Tue Aug 26 16:05:50 CEST 2008
16:05:51,021  INFO org.hibernate.connection.DriverManagerConnectionProvider
- cleaning up 

Re: hibernate3 plugin can't resolve maven-hibernate3-api

2006-09-07 Thread Wayne Fay

I'd copy that Codehaus pluginRepo as a regular repository and see if
that fixed it.

Try mvn -U to update your plugins. Also try mvn -X to get full debug
log, and make sure Maven is looking at the Codehaus repo for those
deps.

Wayne

On 9/7/06, SkipWalker [EMAIL PROTECTED] wrote:


I'm trying to use the hibernate3-maven-plugin from codehaus with maven 2.0.4.

I keep getting stuck with the following error regarding hibernate3-api and
hibernate3-jdk

I don't understand why the dependencies are missing  The .  Any help is a
appreciated.

Missing:
--
1) org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-api \
 -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
   1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
   2)
org.codehaus.mojo.hibernate3:maven-hibernate3-api:jar:1.0-SNAPSHOT

2) org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
 mvn install:install-file -DgroupId=org.codehaus.mojo.hibernate3
-DartifactId=maven-hibernate3-jdk15 \
 -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
   1)
org.codehaus.mojo:hibernate3-maven-plugin:maven-plugin:1.0-20060825.145135-3
   2)
org.codehaus.mojo.hibernate3:maven-hibernate3-jdk15:jar:1.0-SNAPSHOT

--


Here's my plugin def:

   groupIdorg.codehaus.mojo/groupId
   artifactIdhibernate3-maven-plugin/artifactId
   version1.0-SNAPSHOT/version
   executions
   execution
   goals
   goalhbm2ddl/goal
   /goals
   phaseprocess-resources/phase
   configuration
   hibernate

configurationFilesrc/main/webapp/WEB-INF/classes/hibernate.cfg.xml/configurationFile
   /hibernate
   outputDirectory
   /outputDirectory
   /configuration
   /execution
   /executions
   /plugin

I have this as one of my plugin repo defs

   pluginRepository
   idcodehaus.plugin.snapshots/id
   urlhttp://snapshots.maven.codehaus.org/maven2//url
   snapshots
   enabledtrue/enabled
   /snapshots
   releases
   enabledtrue/enabled
   /releases
   /pluginRepository

--
View this message in context: 
http://www.nabble.com/hibernate3-plugin-can%27t-resolve-maven-hibernate3-api-tf2236295.html#a6200670
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hibernate3 plugin cannot find resource specified in hibernate.cfg.xml file

2006-08-22 Thread Bryan Woodcox
Lakshman,

 

Thanks for the response.  My Category.hbm.xml was not in the
src/main/resources directory, but I have moved it there to now avail.

 

I am running mvn clean generate-sources to execute the build.  Attempting a
mvn clean resources:resources hibernate3:hbm2java yields the same
error/stack trace as I included in the original posting.

 

Any other suggestions?  This seems like a simple problem, but it has cause
great delay for me.  Very annoying!

 

Bryan



RE: Hibernate3 plugin cannot find resource specified in hibernate.cfg.xml file

2006-08-22 Thread Lakshman Srilakshmanan
Hi Bryan,

When you execute mvn clean resources:resources does your
hibernate.cfg.xml file get copied into target/classes ?

Thanks
Lakshman


 -Original Message-
 From: Bryan Woodcox [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 22 August 2006 2:10 PM
 To: users@maven.apache.org
 Subject: RE: Hibernate3 plugin cannot find resource specified in
hibernate.cfg.xml file
 
 Lakshman,
 
 
 
 Thanks for the response.  My Category.hbm.xml was not in the
 src/main/resources directory, but I have moved it there to now avail.
 
 
 
 I am running mvn clean generate-sources to execute the build.
Attempting a
 mvn clean resources:resources hibernate3:hbm2java yields the same
 error/stack trace as I included in the original posting.
 
 
 
 Any other suggestions?  This seems like a simple problem, but it has
cause
 great delay for me.  Very annoying!
 
 
 
 Bryan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hibernate3 plugin cannot find resource specified in hibernate.cfg.xml file

2006-08-22 Thread Bryan Woodcox
Lakshman-

Hey thanks for your help.  I was able to get it working by running a mvn
clean resources:resources generate-sources.

Thanks again!

Bryan

-Original Message-
From: Lakshman Srilakshmanan
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 22, 2006 5:34 PM
To: Maven Users List
Subject: RE: Hibernate3 plugin cannot find resource specified in
hibernate.cfg.xml file

Hi Bryan,

When you execute mvn clean resources:resources does your
hibernate.cfg.xml file get copied into target/classes ?

Thanks
Lakshman


 -Original Message-
 From: Bryan Woodcox [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 22 August 2006 2:10 PM
 To: users@maven.apache.org
 Subject: RE: Hibernate3 plugin cannot find resource specified in
hibernate.cfg.xml file
 
 Lakshman,
 
 
 
 Thanks for the response.  My Category.hbm.xml was not in the
 src/main/resources directory, but I have moved it there to now avail.
 
 
 
 I am running mvn clean generate-sources to execute the build.
Attempting a
 mvn clean resources:resources hibernate3:hbm2java yields the same
 error/stack trace as I included in the original posting.
 
 
 
 Any other suggestions?  This seems like a simple problem, but it has
cause
 great delay for me.  Very annoying!
 
 
 
 Bryan



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Hibernate3 plugin cannot find resource specified in hibernate.cfg.xml file

2006-08-21 Thread Lakshman Srilakshmanan
Hi Bryan,

I am asking the obvious, but do you have your hibernate.cfg.xml and
CategoryImpl.hbm.xml in src/main/resources.

Secondly, are you executing   mvn clean resources:resources
hibernate3:hbm2java

Thanks
Lakshman


 -Original Message-
 From: Bryan Woodcox [mailto:[EMAIL PROTECTED]
 Sent: Sunday, 20 August 2006 6:47 AM
 To: users@maven.apache.org
 Subject: Hibernate3 plugin cannot find resource specified in
hibernate.cfg.xml file
 
 I am using the hibernate3 plugin for maven2.  When I attempt to
generate my
 POJO's from my hbm files I get the following error.
 
 
 
 [INFO] Preparing hibernate3:hbm2java
 
 [WARNING] Removing: hbm2java from forked lifecycle, to prevent
recursive
 invocation.
 
 [INFO] No goals needed for project - skipping
 
 [INFO] [hibernate3:hbm2java {execution: hbm2java}]
 
 Aug 19, 2006 2:30:59 PM org.hibernate.cfg.Environment clinit
 
 INFO: Hibernate 3.2 cr2
 
 Aug 19, 2006 2:30:59 PM org.hibernate.cfg.Environment clinit
 
 INFO: hibernate.properties not found
 
 Aug 19, 2006 2:30:59 PM org.hibernate.cfg.Environment
buildBytecodeProvider
 
 INFO: Bytecode provider name : cglib
 
 Aug 19, 2006 2:30:59 PM org.hibernate.cfg.Environment clinit
 
 INFO: using JDK 1.4 java.sql.Timestamp handling
 
 Aug 19, 2006 2:30:59 PM org.hibernate.cfg.Configuration configure
 
 INFO: configuring from file: hibernate.cfg.xml
 
 Aug 19, 2006 2:30:59 PM org.hibernate.cfg.Configuration addResource
 
 INFO: Reading mappings from resource: CategoryImpl.hbm.xml
 
 [INFO]


 
 [ERROR] FATAL ERROR
 
 [INFO]


 
 [INFO] Resource: CategoryImpl.hbm.xml not found
 
 [INFO]


 
 [INFO] Trace
 
 org.hibernate.MappingException: Resource: CategoryImpl.hbm.xml not
found
 
 at
 org.hibernate.cfg.Configuration.addResource(Configuration.java:512)
 
 at

org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotation
Conf
 iguration.java:348)
 
 at

org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1
474)
 
 at
 org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1453)
 
 at
 org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1427)
 
 .
 
 .
 
 .
 
 
 
 My configuration is as follows.
 
 
 
 Hibernate.cfg.xml
 
 
 
 ?xml version='1.0' encoding='utf-8'?
 
 !DOCTYPE hibernate-configuration PUBLIC
 
 -//Hibernate/Hibernate Configuration DTD//EN
 

http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd;
 
 
 
 hibernate-configuration
 
   !-- a SessionFactory instance --
 
   session-factory name=hibernate_session
 
 !-- begin: properties --
 
 property
 name=connection.driver_classcom.mysql.jdbc.Driver/property
 
 property
 name=connection.urljdbc:mysql://localhost:3306/wcs/property
 
 property name=connection.usernameroot/property
 
 property name=connection.passwordxxx/property
 
 property
name=dialectorg.hibernate.dialect.MySQLDialect/property
 
 property name=show_sqlfalse/property
 
 !-- end: properties --
 
 
 
 mapping resource=CategoryImpl.hbm.xml/
 
 mapping resource=src/main/domain/AddressFormatImpl.hbm.xml/
 
 mapping resource=src/main/domain/AddressImpl.hbm.xml/
 
 
 
   /session-factory
 
 /hibernate-configuration
 
 
 
 Pom.xml excerpt
 
 
 
   build
 
 resources
 
   resource
 
 directorysrc/main/resources/directory
 
 filteringtrue/filtering
 
   /resource
 
   resource
 
 directorysrc/main/domain/directory
 
 filteringtrue/filtering
 
   /resource
 
 /resources
 
 extensions
 
   extension
 
 groupIdmysql/groupId
 
 artifactIdmysql-connector-java/artifactId
 
 version5.0.2/version
 
   /extension
 
 /extensions
 
 plugins
 
   plugin
 
 groupIdorg.apache.maven.plugins/groupId
 
 artifactIdmaven-compiler-plugin/artifactId
 
 configuration
 
   source1.5/source
 
   target1.5/target
 
 /configuration
 
   /plugin
 
   plugin
 
 groupIdorg.codehaus.mojo/groupId
 
 artifactIdhibernate3-maven-plugin/artifactId
 
 version1.0-SNAPSHOT/version
 
 executions
 
   execution
 
 idhbm2java/id
 
 phasegenerate-sources/phase
 
 goals
 
   goalhbm2java/goal
 
 /goals
 
 configuration
 
   hibernate
 
 

configurationFilesrc/main/resources/hibernate.cfg.xml/configurationFi
le
 
   /hibernate
 
   outputDirectory
 
 hbm2javasrc/main/java/hbm2java
 
   /outputDirectory
 
 /configuration
 
   /execution
 
 
 
 I am using hibernate-tools-3.2.0.beta6a with hibernate-3.2.0rc2.  I

Re: hibernate3 plugin

2006-02-14 Thread Srepfler Srgjan

A site that describes goals and documents the plugin would be most usefull.

Srgjan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hibernate3 plugin

2006-02-14 Thread Jacek Laskowski
06-02-13, Michal Palička [EMAIL PROTECTED] napisał(a):

 the Hibernate3 plugin can be found at the mojo-sandbox.

Hi,

(Since it's the users mailing list I hope such irritating questions
are acceptable ;))

What's the difference between the Hibernate3 plugin hosted at the
mojo-sandbox and the XDoclet2 Hibernate plugin for Maven2?

 Michal Palicka

Jacek

--
Jacek Laskowski
http://www.laskowski.org.pl


RE: hibernate3 plugin

2006-02-14 Thread Johann Reyes
Hello Michal

The main difference is that while the hibernate3-maven-plugin is based on
hibernate-tools
(http://www.hibernate.org/hib_docs/tools/reference/en/html/ant.html) and can
do more tasks like create a database schema base in your POJOs or generate a
database documentation (kind of javadoc) also based in your POJOS

Regards

Johann Reyes

-Original Message-
From: Jacek Laskowski [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 15, 2006 2:03 AM
To: Maven Users List
Subject: Re: hibernate3 plugin

06-02-13, Michal Palička [EMAIL PROTECTED] napisał(a):
 the Hibernate3 plugin can be found at the mojo-sandbox.
Hi,
(Since it's the users mailing list I hope such irritating questionsare
acceptable ;))
What's the difference between the Hibernate3 plugin hosted at
themojo-sandbox and the XDoclet2 Hibernate plugin for Maven2?
 Michal Palicka
Jacek
--Jacek Laskowskihttp://www.laskowski.org.pl



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: hibernate3 plugin

2006-02-13 Thread Michal Palička

Hello,

the Hibernate3 plugin can be found at the mojo-sandbox.

http://mojo.codehaus.org/faq.html#what-is-the-sandbox

I am not sure whether it supports Maven 1.x.
You'll have to build it from the source.
The source can be downloaded from a public SVN repository.

Regards
Michal Palicka


-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 11, 2006 2:17 PM
To: Maven Users List
Subject: hibernate3 plugin

hello all,
 i m currently using Maven 1.1, and i need to download hibernate3-maven-plugin

can anyone tell me where i can downlod it, and which version?

thanks in advance and regards
 marco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hibernate3 plugin

2006-02-13 Thread Allan Ramirez

I think all mojo plugins will work on Maven 2 only.

-allan

Michal Palička wrote:


Hello,

the Hibernate3 plugin can be found at the mojo-sandbox.

http://mojo.codehaus.org/faq.html#what-is-the-sandbox

I am not sure whether it supports Maven 1.x.
You'll have to build it from the source.
The source can be downloaded from a public SVN repository.

Regards
Michal Palicka


-Original Message-
From: Marco Mistroni [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 11, 2006 2:17 PM

To: Maven Users List
Subject: hibernate3 plugin

hello all,
i m currently using Maven 1.1, and i need to download hibernate3-maven-plugin

can anyone tell me where i can downlod it, and which version?

thanks in advance and regards
marco

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]