These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 30 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: "isManyToMany" in code generation for POJO
PostPosted: Mon Sep 18, 2006 2:00 pm 
Beginner
Beginner

Joined: Mon Apr 03, 2006 2:41 am
Posts: 25
Location: Mauritius
hi all

Hibernate tools version: 3.2.0.beta6a

I would like to generate code for many to many relation.

I don't need something sophisticated I think,
and it's not a problem for me to modify the hibernate-tool.jar itself.

I have several simple ideas but since I don't know very well the architecture for code generation, I hope someone will be able to help me.

I have seen that in the current template, the developer is using something like <#if c2h.isManyToOne(property)>
So I'm wondering where I could add a isManyToMany(property) method ?

in order to know if this is a many-to-many relation, i can see three simple ways :
- the first is to read an xml file containing information about many-to-many relation
In this case, I would need to read a xml file. Could you tell me where I can put this file ?

- the second would be based on guessing based on the name of the types
I would need to access the list of the types for this.
Could explain how to do this please ?

- the third would be checking that if the primary key properties are all used in a foreign key too.
This one can be difficult to implement...

Thanks in advance for your help.

If someone has already implement a true many-to-many code generation, it would be even better :)

Regards,
Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 2:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
sorry, but what is it you actually want to generate ?

java code ? then what is wrong with the current many-to-many generation ?

hbm.xml ? then manytomany generation is in b7

/max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 3:17 pm 
Beginner
Beginner

Joined: Mon Apr 03, 2006 2:41 am
Posts: 25
Location: Mauritius
Thanks for the feedback.

Yes, I want to generate java code.

I have downloaded the b7 template ( or what I have thought it was the b7 http://download.jboss.org/jbosside/buil ... ightly.zip ).
But since you wrote that the b7 contains the ManyToMany code generation, I will download the true b7 :)


Following the generated code in my project :

I have the following tables :
FinancialStatement, Auditor, FinancialStatementAuditor

A FinancialStatement can have several auditor.
An auditor can do several FinancialStatement

in Financialstatement
Code:
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "financialstatement")   
   public Set<Financialstatementauditor> getFinancialstatementauditors() {
      return this.financialstatementauditors;
   }


what I expect

Code:
@ManyToMany(         targetEntity=accountingAudit.businessObjects.Auditor.class,
         cascade={CascadeType.PERSIST, CascadeType.MERGE}
         )
         @JoinTable(
         name="financialstatementauditor",
         joinColumns={@JoinColumn(name="year"), @JoinColumn(name="companyId"), @JoinColumn(name="financialStatementId")},
         inverseJoinColumns={@JoinColumn(name="auditorId")}
         )
   public Set<Auditor> getAuditors()
   {
      return this.auditors;
   }


in Auditor class

Code:
@OneToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "auditor")
   public Set<Financialstatementauditor> getFinancialstatementauditors() {
      return this.financialstatementauditors;
   }


what I expect
Code:
@ManyToMany(
         cascade={CascadeType.PERSIST, CascadeType.MERGE},
         mappedBy="auditors",
         targetEntity=accountingAudit.businessObjects.Financialstatement.class
         )
   public Set<Financialstatement> getFinancialstatements()
   {
      return this.financialstatements;
   }


Regards,
Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 18, 2006 4:56 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
ah ok. yes, that would be nice to get fixed.

just look in set.hbm.xml for the information it extracts to map many-to-many should be somewhat similar to what you would need in the ejb3 beans.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 19, 2006 11:04 pm 
Regular
Regular

Joined: Wed Mar 15, 2006 1:48 pm
Posts: 91
I am wondering how I can have many-to-many from hbm2hbm and hbm2java, instead of annotation.

I have 3 tree tables(table 1, 2 and 3) with one-to-many between table 1 and 2, many-to-on between table 2 and 3. I put these 3 tables in reveng.xml file and I can see generated one-to-many in table 1 and 3, and many-to-one in table 2 hbm files. What I really want to see is only many-to-many in table 1 and 3, and I don't need anything (either hbm or java code) generated for table 2.

I am using 3.2 beta 7(not night build) and it is supposed to handle this many-to-many relationship if I read doc correctly.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 1:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, if the tables actually are pure link tables; meaning it consists only of two foreign keys referring to two other entities.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 4:52 am 
Beginner
Beginner

Joined: Mon Apr 03, 2006 2:41 am
Posts: 25
Location: Mauritius
Hi

With the beta7 template, about the case I described in my previous post, I get the following generated code

in Financialstatement

Code:
@ManyToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "unresolved")
   public Set<Auditor> getAuditors() {
      return this.auditors;
   }


in Auditor

Code:
@ManyToMany(cascade = { CascadeType.ALL }, fetch = FetchType.LAZY, mappedBy = "auditors")
   public Set<Financialstatement> getFinancialstatements() {
      return this.financialstatements;
   }


This is better than beta6 but not correct yet.

I have already posted the code which is expected.

database
Financialstatement PK ( year, company, financialstatementid )
Auditor PK ( auditorid )
financialstatementauditor PK ( year, company, financialstatementid, auditorid )

Thanks in advance to the hibernate tools team for fixing this issue.

Moreover, I haven't found the set.hbm.xml, sorry :(, and I am always interested in accessing external configuration from the template ( this would be XML file with some specific information about the project ).
Any idea how to do this ?
A custom exporter ? but where should I put the xml file ?

Thanks in advance for any feedback.

Regards,
Christophe


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 4:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you should look in hbm/set.hbm.ftl to see how to get the correct values.

And to fix it you should change/look in pojo/Ejb3PropertyGetAnnotation.ftl

which in turn will use code from PojoClass.generateCollectionAnnotation(Property) which contains the logic for generating the manytomany.

Note: wether you fix it via the templates or in the pojoclass java code does not matter...i will accept both kind of patches.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 10:35 am 
Regular
Regular

Joined: Wed Mar 15, 2006 1:48 pm
Posts: 91
Max,

Can you tell me what conditions to be met in reveng.xml and table design so I can have many-to-many relationship among threee tables? I only want to hbm and java code for table 1 and 3 in my pervious posting(don't need for table 2). Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 10:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes, have a table with exactly two foreign keys (no other columns) that points to two other entity tables.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 11:29 am 
Regular
Regular

Joined: Wed Mar 15, 2006 1:48 pm
Posts: 91
I think that is what I used. Here are DDL,

1. table 2 which has two FK,
CREATE TABLE `user_role_fuel` (
`user_id` mediumint(8) NOT NULL,
`role_id` smallint(2) NOT NULL,
PRIMARY KEY (`user_id`,`role_id`),
KEY `role_id` (`role_id`),
KEY `user_id` (`user_id`),
CONSTRAINT `user_role_fuel_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`),
CONSTRAINT `user_role_fuel_ibfk_2` FOREIGN KEY (`role_id`) REFERENCES `role_fuel` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
2. table 1
CREATE TABLE `user` (
`id` mediumint(8) NOT NULL auto_increment,
`username` char(10) NOT NULL,
`password` char(10) NOT NULL,
`password_hint` char(10) default NULL,
`first_name` char(5) NOT NULL,
`last_name` char(5) NOT NULL,
`address` char(20) default NULL,
`city` smallint(4) NOT NULL,
`county` smallint(3) NOT NULL,
`province` smallint(2) NOT NULL,
`postal_code` char(6) NOT NULL,
`email` char(20) NOT NULL,
`phone_number` char(15) default NULL,
`ip` char(15) NOT NULL,
`account_enabled` char(1) NOT NULL,
`account_locked` char(1) NOT NULL,
`last_update_date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

3. table 3
CREATE TABLE `role_fuel` (
`id` smallint(2) NOT NULL auto_increment,
`name` varchar(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

After I ran following reveng.xml I still got one-to-many/many-to-one instead of many-to-many.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering SYSTEM "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd">

<!--!DOCTYPE hibernate-reverse-engineering SYSTEM "file:///C:/eclipse/workspace/appgen/hibernateTool.dtd"-->
<hibernate-reverse-engineering>
<schema-selection match-table="role_fuel"/>
<schema-selection match-table="user"/>
<schema-selection match-table="user_role_fuel"/>
<type-mapping>
<!-- jdbc-type is name fom java.sql.Types -->
<sql-type jdbc-type="DECIMAL" precision="10" scale="0" hibernate-type="Long"/>
<sql-type jdbc-type="CHAR" length="1" hibernate-type="yes_no"/>
<sql-type jdbc-type="DECIMAL" precision="1" scale="0" hibernate-type="yes_no"/>
<sql-type jdbc-type="DECIMAL" precision="19" scale="0" hibernate-type="Long"/>
<sql-type jdbc-type="DECIMAL" precision="5" scale="2" hibernate-type="Float"/>
</type-mapping>
<table name="user_role_fuel">
<primary-key>
<generator class="native"/>
</primary-key>
</table>
<table name="user">
<primary-key>
<generator class="native"/>
</primary-key>
</table>
<table name="role_fuel">
<primary-key>
<generator class="native"/>
</primary-key>
</table>
</hibernate-reverse-engineering>


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 11:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
how did you run it ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 11:55 am 
Regular
Regular

Joined: Wed Mar 15, 2006 1:48 pm
Posts: 91
What do you mean? I ran it in ant with hbm2hbm/java tasks. I am using MySQL 5.0.24.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 11:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
well you could have run it via eclipse ;)

try and enable debug logging and show the output then i can see what is going on.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 12:38 pm 
Regular
Regular

Joined: Wed Mar 15, 2006 1:48 pm
Posts: 91
Here you go,

[hibernatetool] Executing Hibernate Tool with a JDBC Configuration (for reverse engineering)
[hibernatetool] 1. task: hbm2hbmxml (Generates a set of hbm.xml files)
[hibernatetool] Sep 20, 2006 11:35:25 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.2 cr3
[hibernatetool] Sep 20, 2006 11:35:25 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] Sep 20, 2006 11:35:25 AM org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] INFO: Bytecode provider name : cglib
[hibernatetool] Sep 20, 2006 11:35:25 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] Sep 20, 2006 11:35:25 AM org.hibernate.cfg.reveng.OverrideRepository addFile
[hibernatetool] INFO: Override file: C:\eclipse\workspace\appgen\complete.reveng.xml
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: Hibernate connection pool size: 20
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: autocommit mode: false
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/fuel
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.connection.DriverManagerConnectionProvider configure
[hibernatetool] INFO: connection properties: {user=fuel, password=****, show_sql=true}
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: RDBMS: MySQL, version: 5.0.24-community-nt
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.dialect.Dialect <init>
[hibernatetool] INFO: Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
[hibernatetool] INFO: Using default transaction strategy (direct JDBC transactions)
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
[hibernatetool] INFO: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic flush during beforeCompletion(): disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Automatic session close at end of transaction: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch size: 15
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC batch updates for versioned data: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Scrollable result sets: enabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JDBC3 getGeneratedKeys(): enabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Connection release mode: auto
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default schema: fuel
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default catalog: fuel
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Maximum outer join fetch depth: 2
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default batch fetch size: 1
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Generate SQL with comments: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Order SQL updates by primary key: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
[hibernatetool] INFO: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
[hibernatetool] INFO: Using ASTQueryTranslatorFactory
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query language substitutions: {}
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: JPA-QL strict compliance: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Second-level cache: enabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Query cache: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory createCacheProvider
[hibernatetool] INFO: Cache provider: org.hibernate.cache.NoCacheProvider
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Optimize cache for minimal puts: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Structured second-level cache entries: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Statistics: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Deleted entity synthetic identifier rollback: disabled
[hibernatetool] Sep 20, 2006 11:35:26 AM org.hibernate.cfg.SettingsFactory buildSettings
[hibernatetool] INFO: Default entity-mode: pojo
[hibernatetool] Sep 20, 2006 11:35:27 AM org.hibernate.connection.DriverManagerConnectionProvider close
[hibernatetool] INFO: cleaning up connection pool: jdbc:mysql://localhost/fuel
[hibernatetool] Sep 20, 2006 11:35:27 AM org.hibernate.tool.hbm2x.Version <clinit>
[hibernatetool] INFO: Hibernate Tools 3.2.0.beta7
Sep 20, 2006 11:35:27 AM org.hibernate.connection.DriverManagerConnectionProvider close
INFO: cleaning up connection pool: jdbc:mysql://localhost/fuel
[hibernatetool] Sep 20, 2006 11:35:27 AM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing hibernate-mapping.hbm to C:\eclipse\workspace\appgen\build\merge\src\user\model\User.hbm.xml
[hibernatetool] Sep 20, 2006 11:35:27 AM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing hibernate-mapping.hbm to C:\eclipse\workspace\appgen\build\merge\src\user\model\RoleFuel.hbm.xml
[hibernatetool] Sep 20, 2006 11:35:27 AM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing hibernate-mapping.hbm to C:\eclipse\workspace\appgen\build\merge\src\user\model\UserRoleFuel.hbm.xml
prepareClass:
[input] skipping input as property app.module has already been set.
Overriding previous definition of reference to middlegen.classpath
gen-class:
Trying to override old definition of task hibernatetool
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: Hibernate 3.2 cr3
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: hibernate.properties not found
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] INFO: Bytecode provider name : cglib
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.Environment <clinit>
[hibernatetool] INFO: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.Configuration addFile
[hibernatetool] INFO: Reading mappings from file: C:\eclipse\workspace\appgen\build\merge\src\user\model\RoleFuel.hbm.xml
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
[hibernatetool] INFO: Mapping class: user.model.RoleFuel -> role_fuel
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.Configuration addFile
[hibernatetool] INFO: Reading mappings from file: C:\eclipse\workspace\appgen\build\merge\src\user\model\User.hbm.xml
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
[hibernatetool] INFO: Mapping class: user.model.User -> user
[hibernatetool] Sep 20, 2006 11:35:28 AM org.hibernate.cfg.Configuration addFile
[hibernatetool] INFO: Reading mappings from file: C:\eclipse\workspace\appgen\build\merge\src\user\model\UserRoleFuel.hbm.xml
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
[hibernatetool] INFO: Mapping class: user.model.UserRoleFuel -> user_role_fuel
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
[hibernatetool] INFO: Mapping collection: user.model.RoleFuel.userRoleFuels -> user_role_fuel
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.cfg.HbmBinder bindCollectionSecondPass
[hibernatetool] INFO: Mapping collection: user.model.User.userRoleFuels -> user_role_fuel
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.tool.hbm2x.Version <clinit>
[hibernatetool] INFO: Hibernate Tools 3.2.0.beta7
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing Pojo to C:\eclipse\workspace\appgen\build\merge\src\user\model\User.java
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing Pojo to C:\eclipse\workspace\appgen\build\merge\src\user\model\RoleFuel.java
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing Pojo to C:\eclipse\workspace\appgen\build\merge\src\user\model\UserRoleFuel.java
[hibernatetool] Sep 20, 2006 11:35:29 AM org.hibernate.tool.hbm2x.TemplateProducer produce
[hibernatetool] INFO: Writing Pojo to C:\eclipse\workspace\appgen\build\merge\src\user\model\UserRoleFuelId.java
gen:
BUILD SUCCESSFUL
Total time: 11 seconds


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 30 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.