You're a wonderful, wonderful human being. Thank you!
On 3/2/07, Johann Reyes <[EMAIL PROTECTED]> wrote:
Hello Lally After reviewing your project, I noticed that the annotated class was using annotations from org.hibernate*. Hibernate doesn't look for classes using these annotations, it looks for classes using the javax.persistence.* package, so I change the import package and now it's running. Here I attached the corrected project for you to see, just run "mvn compile hibernate3:hbm2ddl" and it should work. Regards Johann Reyes -----Original Message----- From: Lally Singh [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 2:22 PM To: [email protected] Subject: Re: [mojo-user] Basic Hibernate3/Annotations setup sorry, still an empty file. here's a tarfile of the entire project (it's really small, just getting everything set up). On 2/26/07, Johann Reyes <[EMAIL PROTECTED]> wrote: > Hello Lally > > Hmm everything looks fine, might be that there is no class compiled in your > target directory? Try running the plugin as follows: > > mvn compile hibernate3:hbm2ddl > > If this doesn't work, could you send me the annotated file to run some tests > on it. > > Regards > > Johann Reyes > > -----Original Message----- > From: Lally Singh [mailto:[EMAIL PROTECTED] > Sent: Monday, February 26, 2007 4:03 PM > To: [email protected] > Subject: [mojo-user] Basic Hibernate3/Annotations setup > > Hey all, I must be completely lost. The hibernate3 plugin has stopped > complaining, but the generated schema.sql file is empty :-(. > > The setup is as such: > I have some starting annotations set up in > edu.vt.iddl.meval.schema.SequencePoint > I've copy-pasted next to anything I could from the > hibernate3-maven-plugin documentation, and set up a hibernate.cfg.xml > file appropriately (afaik). > > $ mvn hibernate3:hbm2ddl > > Generates an empty schema.sql file. > > I've attached the relevant pom.xml and hibernate.cfg.xml files, and > below's the output from maven. > > Seriously, thanks for any help. > > -ls > > [EMAIL PROTECTED] qgenerator]$ !mvn > mvn hibernate3:hbm2ddl > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'hibernate3'. > [INFO] > ---------------------------------------------------------------------------- > [INFO] Building qgenerator > [INFO] task-segment: [hibernate3:hbm2ddl] > [INFO] > ---------------------------------------------------------------------------- > [INFO] Preparing hibernate3:hbm2ddl > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > [WARNING] > Artifact junit:junit:jar:3.8.1:test retains local scope 'test' > overriding broader scope 'compile' > given by a dependency. If this is not intended, modify or > remove the local scope. > > [INFO] [hibernate3:hbm2ddl] > [INFO] Configuration XML file loaded: > /Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/sr > c/main/resources/hibernate.cfg.xml > [INFO] Configuration XML file loaded: > /Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/sr > c/main/resources/hibernate.cfg.xml > [INFO] src/main/resources/database.properties not found within the > project. Trying absolute path. > [INFO] No hibernate properties file loaded. > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESSFUL > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 3 seconds > [INFO] Finished at: Mon Feb 26 15:50:48 EST 2007 > [INFO] Final Memory: 5M/10M > [INFO] > ------------------------------------------------------------------------ > [EMAIL PROTECTED] qgenerator]$ !cat > cat `find . -name "*.sql" -print` > [EMAIL PROTECTED] qgenerator]$ > > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
