RE: hibernate3-maven-plugin: hbm2hbmxml does not generate any hbm.xml files

2006-08-25 Thread kajh

Hi!

Thanks for answering!

No. I don't have any pojos yet.

I have a database and want to generate hbm.xml files for the tables owned by
the given databaseuser in this database, and then generate pojos from these
hbm.xml files.


-Kaj :)


Johann Reyes-2 wrote:
 
 Kaj
 
 Question, do you have annotated classes? 
 

-- 
View this message in context: 
http://www.nabble.com/hibernate3-maven-plugin%3A-hbm2hbmxml-does-not-generate-any-hbm.xml-files-tf2157468.html#a5979349
Sent from the Maven - Users forum at Nabble.com.


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



RE: hibernate3-maven-plugin: hbm2hbmxml does not generate any hbm.xml files

2006-08-24 Thread Johann Reyes
Kaj

Question, do you have annotated classes? 

Regards

Johann Reyes

-Original Message-
From: Kaj Hejer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 24, 2006 4:58 AM
To: users@maven.apache.org
Subject: hibernate3-maven-plugin: hbm2hbmxml does not generate any hbm.xml
files

Hi!

I'm trying to generate hbm.xml files running mvn hibernate3:hbm2hbmxml,
but no hbm.xml files are generated.

Do I need in some way to tell the plugin which tables to generate
mappingsfiles for, other than specifying the jdbc url, username and password
for the database in hibernate.cfg.xml?

Here is the output I get:

$mvn  hibernate3:hbm2hbmxml
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hibernate3'.

[INFO]


[INFO] Building Xs
[INFO]task-segment: [hibernate3:hbm2hbmxml]
[INFO]


[INFO] Preparing hibernate3:hbm2hbmxml
[INFO] No goals needed for project - skipping

[INFO] [hibernate3:hbm2hbmxml]
[INFO] No output directory found for hbm2hbmxml, using the default:  
target/hibernate3/generated-mappings
INFO 24.08 09:42:57 (Environment.java:479) - Hibernate 3.1.2 INFO 24.08
09:42:57 (Environment.java:509) - hibernate.properties not found INFO 24.08
09:42:57 (Environment.java:525) - using CGLIB reflection optimizer INFO
24.08 09:42:57 (Environment.java:555) - using JDK 1.4 java.sql.Timestamp
handling INFO 24.08 09:42:57 (Configuration.java:1342) - configuring from
file: hibernate.cfg.xml
DEBUG 24.08 09:42:57 (DTDEntityResolver.java:42) - trying to locate
http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in
classpath under org/hibernate/ DEBUG 24.08 09:42:57
(DTDEntityResolver.java:56) - found http://
hibernate.sourceforge.net/hibernate-configuration-3.0.dtd in classpath DEBUG
24.08 09:42:57 (Configuration.java:1269) -
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver
DEBUG 24.08 09:42:57 (Configuration.java:1269) -
hibernate.connection.password=xxx DEBUG 24.08 09:42:57
(Configuration.java:1269) - hibernate.connection.url= DEBUG 24.08
09:42:57 (Configuration.java:1269) - hibernate.connection.username=
DEBUG 24.08 09:42:57 (Configuration.java:1269) -
hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
DEBUG 24.08 09:42:57 (Configuration.java:1269) - hibernate.show_sql=true
DEBUG 24.08 09:42:57 (Configuration.java:1269) -
hibernate.use_sql_comments=true INFO 24.08 09:42:57
(Configuration.java:1419) - Configured
SessionFactory: null
DEBUG 24.08 09:42:57 (Configuration.java:1420) - properties:  
{hibernate.connection.password=xxx, java.runtime.name=Java(TM) 2 Runtime
Environment, Standard Edition, sun.boot.library.path=/System/
Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries,
java.vm.version=1.5.0_06-64, awt.nativeDoubleBuffering=true,
hibernate.connection.username=, gopherProxySet=false,
java.vm.vendor=Apple Computer, Inc., java.vendor.url=http:// apple.com/,
path.separator=:, java.vm.name=Java HotSpot(TM) Client VM,
file.encoding.pkg=sun.io, user.country=US, sun.os.patch.level=unknown,
java.vm.specification.name=Java Virtual Machine Specification,
user.dir=xxxtrunk, java.runtime.version=1.5.0_06-112,
java.awt.graphicsenv=apple.awt.CGraphicsEnvironment,
java.endorsed.dirs=/System/Library/Frameworks/JavaVM.framework/
Versions/1.5.0/Home/lib/endorsed, os.arch=i386, java.io.tmpdir=/tmp,
line.separator= , java.vm.specification.vendor=Sun Microsystems Inc.,
os.name=Mac OS X, classworlds.conf=/usr/local/maven2/bin/m2.conf,
sun.jnu.encoding=MacRoman, java.library.path=.:/Library/Java/
Extensions:/System/Library/Java/Extensions:/usr/lib/java,
java.specification.name=Java Platform API Specification,
java.class.version=49.0, sun.management.compiler=HotSpot Client Compiler,
os.version=10.4.7, user.home=/Users/kajh, user.timezone=Europe/Oslo,
java.awt.printerjob=apple.awt.CPrinterJob,
file.encoding=MacRoman, java.specification.version=1.5,
hibernate.connection.driver_class=oracle.jdbc.driver.OracleDriver,
java.class.path=/usr/local/maven2/core/boot/classworlds-1.1.jar:/
System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/
Classes/.compatibility/14compatibility.jar, user.name=kajh,
hibernate.use_sql_comments=true, hibernate.show_sql=true,
java.vm.specification.version=1.0, java.home=/System/Library/
Frameworks/JavaVM.framework/Versions/1.5.0/Home,
sun.arch.data.model=32,
hibernate.dialect=org.hibernate.dialect.Oracle9Dialect,
hibernate.connection.url=, user.language=en,
java.specification.vendor=Sun Microsystems Inc.,
awt.toolkit=apple.awt.CToolkit,
hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode,
sharing, java.version=1.5.0_06, java.ext.dirs=/Library/Java/
Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Home/lib/ext, sun.boot.class.path=/