Grettings
I'm having a problem with a parent / child relationship. The problem is that
childs seam to be writen but aren't always read. Yes, I said not always. If I run the test 10 times, it will pass once or twice witch is strange.
I've read the parent / child chapter in hibernate reference and besides that this is not my first parent/child mapping (maybe the more complex one) and I can't find nothing to enlighten me on the failure I report here.
Can anyone help? What have I done wrong?
Thanks to all
MG
Hibernate version:
2.1.0.6 patched
Mapping documents:
Forum.hbm.xml
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="net.das20as10.model.Forum" table="forum">
<id name="id" column="id" type="long" unsaved-value="-1">
<generator class="native"/>
</id>
<property name="name" not-null="true"/>
<property name="description" type="text"/>
<property name="timestamp"/>
<property name="order" column="forum_order"/>
<property name="visible" type="boolean" not-null="true"/>
<many-to-one name="creator" class="net.das20as10.model.Administrator" not-null="true"/>
<many-to-one name="group" column="forum_group" class="net.das20as10.model.ForumGroup" cascade="save-update" not-null="false"/>
<set name="topics" lazy="true" cascade="all-delete-orphan" inverse="true" where="type = 'topic'" order-by="timestamp desc">
<key column="forum"/>
<one-to-many class="net.das20as10.model.ForumTopic"/>
</set>
</class>
</hibernate-mapping>
Post.hdm.xml
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="net.das20as10.model.Post" table="post">
<id name="id" column="id" type="long" unsaved-value="-1">
<generator class="native"/>
</id>
<discriminator column="type" type="string" not-null="true"/>
<property name="title" type="string" not-null="true"/>
<property name="message" type="text" not-null="true"/>
<property name="timestamp" not-null="true"/>
<property name="visible" not-null="true"/>
<many-to-one name="author" class="net.das20as10.model.AuthenticatedUser" not-null="true"/>
<set name="replys" inverse="true" cascade="all-delete-orphan" batch-size="5" lazy="true" order-by="timestamp desc">
<key column="parent"/>
<one-to-many class="net.das20as10.model.Reply"/>
</set>
<subclass name="net.das20as10.model.ForumTopic" discriminator-value="topic">
<many-to-one name="forum" class="net.das20as10.model.Forum" cascade="none"/>
</subclass>
<subclass name="net.das20as10.model.Reply" discriminator-value="reply">
<many-to-one name="forum" class="net.das20as10.model.Forum" cascade="none"/>
<many-to-one name="parent" class="net.das20as10.model.Post" cascade="all"/>
</subclass>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():I'm using Thread Local Session and DAO
Code:
Forum f = objectMother.createBrandNewForum();
ForumTopic ft = objectMother.createBrandNewForumTopic();
Reply r1 = objectMother.createBrandNewReply();
Reply r1_1 = objectMother.createBrandNewReply();
Reply r2 = objectMother.createBrandNewReply();
f.addTopic(ft);
ft.addReply(r1);
ft.addReply(r2);
r1.addReply(r1_1);
dao.writeForum(f);
dao.commit();
dao.close();
Long id = f.getId();
f = dao.readForum(id);
assertFalse("No topics on forum", f.getTopics().isEmpty());
ft = (ForumTopic) f.getTopics().toArray()[0];
assertFalse("No replys on topic", ft.getReplys().isEmpty());
r1 = (Reply) ft.getReplys().toArray()[0];
assertEquals("No new forum detected", NUM_FORUMS + 1, recordCount("select id from forum"));
assertEquals("No new topic detected", EXPECTED_NUM_OF_TOPICS + 1, recordCount("select id from post where type = 'topic'"));
assertEquals("No new replys detected", ReplyTest.TOTAL_NUM_REPLYS + 3, recordCount("select id from post where type = 'reply'"));
assertEquals("Wrong nº of replys in topic", 2, ft.getNumberOfReplys());
/*
Failure here, sould be one, INFO: Reply.getNumberOfTopics() { return topics.size(); }
*/
assertEquals("Wrong nº of replys in reply", 1, r1.getNumberOfReplys());
dao.commit();
dao.close();
Name and version of the database you are using:MySql 4.0.15
The generated SQL (show_sql=true):Code:
Hibernate: select user0_.id as id0_, user0_.type as type0_, user0_.login as login0_, user0_.password as password0_, user0_.name as name0_, user0_.email as email0_, user0_.website as website0_, user0_.active as active0_, user0_.confirmed as confirmed0_, user0_.inscription_date as inscrip10_0_, user0_.activation_date as activat11_0_, user0_.biography as biography0_ from user user0_ where user0_.id=?
Hibernate: select forumgroup0_.id as id1_, forumgroup0_.name as name1_, forumgroup0_.timestamp as timestamp1_, forumgroup0_.group_order as group_or4_1_, forumgroup0_.visible as visible1_, forumgroup0_.description as descript6_1_, forumgroup0_.creator as creator1_, administra1_.id as id0_, administra1_.login as login0_, administra1_.password as password0_, administra1_.name as name0_, administra1_.email as email0_, administra1_.website as website0_, administra1_.active as active0_, administra1_.confirmed as confirmed0_, administra1_.inscription_date as inscrip10_0_, administra1_.activation_date as activat11_0_, administra1_.biography as biography0_ from forum_group forumgroup0_ left outer join user administra1_ on forumgroup0_.creator=administra1_.id where forumgroup0_.id=?
Hibernate: insert into forum (name, description, timestamp, forum_order, visible, creator, forum_group) values (?, ?, ?, ?, ?, ?, ?)
Hibernate: insert into post (forum, title, message, timestamp, visible, author, type) values (?, ?, ?, ?, ?, ?, 'topic')
Hibernate: insert into post (forum, parent, title, message, timestamp, visible, author, type) values (?, ?, ?, ?, ?, ?, ?, 'reply')
Hibernate: insert into post (forum, parent, title, message, timestamp, visible, author, type) values (?, ?, ?, ?, ?, ?, ?, 'reply')
Hibernate: insert into post (forum, parent, title, message, timestamp, visible, author, type) values (?, ?, ?, ?, ?, ?, ?, 'reply')
Hibernate: select forum0_.id as id2_, forum0_.name as name2_, forum0_.description as descript3_2_, forum0_.timestamp as timestamp2_, forum0_.forum_order as forum_or5_2_, forum0_.visible as visible2_, forum0_.creator as creator2_, forum0_.forum_group as forum_gr8_2_, administra1_.id as id0_, administra1_.login as login0_, administra1_.password as password0_, administra1_.name as name0_, administra1_.email as email0_, administra1_.website as website0_, administra1_.active as active0_, administra1_.confirmed as confirmed0_, administra1_.inscription_date as inscrip10_0_, administra1_.activation_date as activat11_0_, administra1_.biography as biography0_, forumgroup2_.id as id1_, forumgroup2_.name as name1_, forumgroup2_.timestamp as timestamp1_, forumgroup2_.group_order as group_or4_1_, forumgroup2_.visible as visible1_, forumgroup2_.description as descript6_1_, forumgroup2_.creator as creator1_ from forum forum0_ left outer join user administra1_ on forum0_.creator=administra1_.id left outer join forum_group forumgroup2_ on forum0_.forum_group=forumgroup2_.id where forum0_.id=?
Hibernate: select administra0_.id as id0_, administra0_.login as login0_, administra0_.password as password0_, administra0_.name as name0_, administra0_.email as email0_, administra0_.website as website0_, administra0_.active as active0_, administra0_.confirmed as confirmed0_, administra0_.inscription_date as inscrip10_0_, administra0_.activation_date as activat11_0_, administra0_.biography as biography0_ from user administra0_ where administra0_.id=?
Hibernate: select topics0_.forum as forum__, topics0_.id as id__, topics0_.id as id1_, topics0_.forum as forum1_, topics0_.title as title1_, topics0_.message as message1_, topics0_.timestamp as timestamp1_, topics0_.visible as visible1_, topics0_.author as author1_, authentica1_.id as id0_, authentica1_.type as type0_, authentica1_.login as login0_, authentica1_.password as password0_, authentica1_.name as name0_, authentica1_.email as email0_, authentica1_.website as website0_, authentica1_.active as active0_, authentica1_.confirmed as confirmed0_, authentica1_.inscription_date as inscrip10_0_, authentica1_.activation_date as activat11_0_, authentica1_.biography as biography0_ from post topics0_ left outer join user authentica1_ on topics0_.author=authentica1_.id where topics0_.forum=? and topics0_.type = 'topic' order by topics0_.timestamp desc
Hibernate: select replys0_.parent as parent__, replys0_.id as id__, replys0_.id as id2_, replys0_.forum as forum2_, replys0_.parent as parent2_, replys0_.title as title2_, replys0_.message as message2_, replys0_.timestamp as timestamp2_, replys0_.visible as visible2_, replys0_.author as author2_, forum1_.id as id0_, forum1_.name as name0_, forum1_.description as descript3_0_, forum1_.timestamp as timestamp0_, forum1_.forum_order as forum_or5_0_, forum1_.visible as visible0_, forum1_.creator as creator0_, forum1_.forum_group as forum_gr8_0_, authentica2_.id as id1_, authentica2_.type as type1_, authentica2_.login as login1_, authentica2_.password as password1_, authentica2_.name as name1_, authentica2_.email as email1_, authentica2_.website as website1_, authentica2_.active as active1_, authentica2_.confirmed as confirmed1_, authentica2_.inscription_date as inscrip10_1_, authentica2_.activation_date as activat11_1_, authentica2_.biography as biography1_ from post replys0_ left outer join forum forum1_ on replys0_.forum=forum1_.id left outer join user authentica2_ on replys0_.author=authentica2_.id where replys0_.parent=? order by replys0_.timestamp desc
Hibernate: select replys0_.parent as parent__, replys0_.id as id__, replys0_.id as id2_, replys0_.forum as forum2_, replys0_.parent as parent2_, replys0_.title as title2_, replys0_.message as message2_, replys0_.timestamp as timestamp2_, replys0_.visible as visible2_, replys0_.author as author2_, forum1_.id as id0_, forum1_.name as name0_, forum1_.description as descript3_0_, forum1_.timestamp as timestamp0_, forum1_.forum_order as forum_or5_0_, forum1_.visible as visible0_, forum1_.creator as creator0_, forum1_.forum_group as forum_gr8_0_, authentica2_.id as id1_, authentica2_.type as type1_, authentica2_.login as login1_, authentica2_.password as password1_, authentica2_.name as name1_, authentica2_.email as email1_, authentica2_.website as website1_, authentica2_.active as active1_, authentica2_.confirmed as confirmed1_, authentica2_.inscription_date as inscrip10_1_, authentica2_.activation_date as activat11_1_, authentica2_.biography as biography1_ from post replys0_ left outer join forum forum1_ on replys0_.forum=forum1_.id left outer join user authentica2_ on replys0_.author=authentica2_.id where ((replys0_.parent=?) or (replys0_.parent=?)) order by replys0_.timestamp desc
Debug level Hibernate log excerpt:
[code]
2005-08-02 17:26:21,554 DEBUG [net.das20as10.persistence.hibernate.HibernatePersistenceManager] - Leitura da instância net.das20as10.model.User
2005-08-02 17:26:21,584 INFO [net.sf.hibernate.cfg.Environment] - Hibernate 2.1.6
2005-08-02 17:26:21,604 INFO [net.sf.hibernate.cfg.Environment] - loaded properties from resource hibernate.properties: {hibernate.connection.password=, hibernate.query.substitutions=true "TRUE", false "FALSE", yes 'Y', no 'N', hibernate.cache.region_prefix=hibernate.test, hibernate.show_sql=true, hibernate.proxool.pool_alias=pool1, hibernate.c3p0.max_statements=0, hibernate.jdbc.batch_size=0, hibernate.cache.use_query_cache=true, hibernate.jdbc.use_streams_for_binary=true, hibernate.max_fetch_depth=1, hibernate.statement_cache.size=0, hibernate.jdbc.use_scrollable_resultset=true, hibernate.connection.pool_size=1, hibernate.connection.username=root, hibernate.jdbc.use_scrollable_resultsets=true, hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.cache.provider_class=net.sf.ehcache.hibernate.Provider, hibernate.cglib.use_reflection_optimizer=true, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql:///das20as10}
2005-08-02 17:26:21,604 INFO [net.sf.hibernate.cfg.Environment] - using java.io streams to persist binary types
2005-08-02 17:26:21,604 INFO [net.sf.hibernate.cfg.Environment] - using CGLIB reflection optimizer
2005-08-02 17:26:21,614 INFO [net.sf.hibernate.cfg.Configuration] - configuring from resource: /hibernate.cfg.xml
2005-08-02 17:26:21,614 INFO [net.sf.hibernate.cfg.Configuration] - Configuration resource: /hibernate.cfg.xml
2005-08-02 17:26:21,684 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:21,694 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd in classpath
2005-08-02 17:26:21,744 DEBUG [net.sf.hibernate.cfg.Configuration] - hibernate.connection.url=jdbc:mysql:///das20as10
2005-08-02 17:26:21,744 DEBUG [net.sf.hibernate.cfg.Configuration] - hibernate.connection.driver_class=com.mysql.jdbc.Driver
2005-08-02 17:26:21,744 DEBUG [net.sf.hibernate.cfg.Configuration] - hibernate.connection.username=root
2005-08-02 17:26:21,744 DEBUG [net.sf.hibernate.cfg.Configuration] - hibernate.connection.password=
2005-08-02 17:26:21,754 DEBUG [net.sf.hibernate.cfg.Configuration] - hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect
2005-08-02 17:26:21,754 DEBUG [net.sf.hibernate.cfg.Configuration] - hibernate.cglib.use_reflection_optimizer=true
2005-08-02 17:26:21,754 DEBUG [net.sf.hibernate.cfg.Configuration] - show_sql=true
2005-08-02 17:26:21,754 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@1f6df4c [Attribute: name resource value "net/das20as10/model/User.hbm.xml"]
2005-08-02 17:26:21,754 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/User.hbm.xml
2005-08-02 17:26:21,754 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:21,754 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:21,885 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.User -> user
2005-08-02 17:26:21,965 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:21,975 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: login -> login, type: string
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: password -> password, type: string
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: name -> name, type: string
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: email -> email, type: string
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: website -> website, type: string
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: active -> active, type: boolean
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: confirmed -> confirmed, type: boolean
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: inscriptionDate -> inscription_date, type: date
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: confirmationDate -> activation_date, type: date
2005-08-02 17:26:21,985 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: biography -> biography, type: text
2005-08-02 17:26:22,025 INFO [net.sf.hibernate.cfg.Binder] - Mapping subclass: net.das20as10.model.AuthenticatedUser -> user
2005-08-02 17:26:22,025 INFO [net.sf.hibernate.cfg.Binder] - Mapping subclass: net.das20as10.model.Administrator -> user
2005-08-02 17:26:22,035 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@18825b3 [Attribute: name resource value "net/das20as10/model/Topic.hbm.xml"]
2005-08-02 17:26:22,035 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/Topic.hbm.xml
2005-08-02 17:26:22,035 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:22,035 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:22,075 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.Topic -> topic
2005-08-02 17:26:22,075 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:22,085 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: name -> name, type: string
2005-08-02 17:26:22,085 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: href -> href, type: string
2005-08-02 17:26:22,085 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: description -> description, type: text
2005-08-02 17:26:22,085 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: order -> topic_order, type: integer
2005-08-02 17:26:22,095 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: parent -> parent, type: net.das20as10.model.Topic
2005-08-02 17:26:22,115 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: subtopics, type: java.util.List
2005-08-02 17:26:22,115 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@e5bbd6 [Attribute: name resource value "net/das20as10/model/Article.hbm.xml"]
2005-08-02 17:26:22,115 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/Article.hbm.xml
2005-08-02 17:26:22,115 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:22,115 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:22,145 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.Article -> article
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: title -> title, type: string
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: motivation -> motivation, type: text
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: creationDate -> creation_date, type: date
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: publicationDate -> publication_date, type: date
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: visible -> visible, type: boolean
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: author -> author, type: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: topic -> topic, type: net.das20as10.model.Topic
2005-08-02 17:26:22,155 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: reviewer1 -> reviewer1, type: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,165 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: reviewer2 -> reviewer2, type: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,175 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: pages, type: java.util.Set
2005-08-02 17:26:22,175 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: resources, type: java.util.Set
2005-08-02 17:26:22,175 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@1d62270 [Attribute: name resource value "net/das20as10/model/Page.hbm.xml"]
2005-08-02 17:26:22,175 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/Page.hbm.xml
2005-08-02 17:26:22,175 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:22,185 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:22,215 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.Page -> page
2005-08-02 17:26:22,215 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:22,215 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: body -> body, type: text
2005-08-02 17:26:22,215 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: number -> number, type: integer
2005-08-02 17:26:22,215 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: article -> article, type: net.das20as10.model.Article
2005-08-02 17:26:22,225 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@1fe1feb [Attribute: name resource value "net/das20as10/model/Resource.hbm.xml"]
2005-08-02 17:26:22,225 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/Resource.hbm.xml
2005-08-02 17:26:22,225 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:22,225 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:22,245 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.Resource -> resource
2005-08-02 17:26:22,245 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:22,255 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: title -> title, type: string
2005-08-02 17:26:22,255 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: description -> description, type: string
2005-08-02 17:26:22,255 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: published -> published, type: boolean
2005-08-02 17:26:22,255 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: article -> article, type: net.das20as10.model.Article
2005-08-02 17:26:22,255 INFO [net.sf.hibernate.cfg.Binder] - Mapping subclass: net.das20as10.model.BibliographicalResource -> resource
2005-08-02 17:26:22,255 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: url -> url, type: string
2005-08-02 17:26:22,255 INFO [net.sf.hibernate.cfg.Binder] - Mapping subclass: net.das20as10.model.FileResource -> resource
2005-08-02 17:26:22,275 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: filename -> filename, type: string
2005-08-02 17:26:22,275 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@1e845c2 [Attribute: name resource value "net/das20as10/model/ForumGroup.hbm.xml"]
2005-08-02 17:26:22,275 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/ForumGroup.hbm.xml
2005-08-02 17:26:22,285 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:22,285 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:22,315 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.ForumGroup -> forum_group
2005-08-02 17:26:22,315 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:22,315 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: name -> name, type: string
2005-08-02 17:26:22,315 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: timestamp -> timestamp, type: timestamp
2005-08-02 17:26:22,315 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: order -> group_order, type: integer
2005-08-02 17:26:22,315 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: visible -> visible, type: boolean
2005-08-02 17:26:22,315 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: description -> description, type: text
2005-08-02 17:26:22,315 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: creator -> creator, type: net.das20as10.model.Administrator
2005-08-02 17:26:22,325 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: forums, type: java.util.Set
2005-08-02 17:26:22,325 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@136a43c [Attribute: name resource value "net/das20as10/model/Forum.hbm.xml"]
2005-08-02 17:26:22,325 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/Forum.hbm.xml
2005-08-02 17:26:22,325 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:22,335 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:22,345 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.Forum -> forum
2005-08-02 17:26:22,345 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:22,345 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: name -> name, type: string
2005-08-02 17:26:22,345 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: description -> description, type: text
2005-08-02 17:26:22,355 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: timestamp -> timestamp, type: timestamp
2005-08-02 17:26:22,355 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: order -> forum_order, type: integer
2005-08-02 17:26:22,355 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: visible -> visible, type: boolean
2005-08-02 17:26:22,355 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: creator -> creator, type: net.das20as10.model.Administrator
2005-08-02 17:26:22,355 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: group -> forum_group, type: net.das20as10.model.ForumGroup
2005-08-02 17:26:22,355 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: topics, type: java.util.Set
2005-08-02 17:26:22,355 DEBUG [net.sf.hibernate.cfg.Configuration] - null<-org.dom4j.tree.DefaultAttribute@198cb3d [Attribute: name resource value "net/das20as10/model/Post.hbm.xml"]
2005-08-02 17:26:22,355 INFO [net.sf.hibernate.cfg.Configuration] - Mapping resource: net/das20as10/model/Post.hbm.xml
2005-08-02 17:26:22,365 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - trying to locate http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
2005-08-02 17:26:22,375 DEBUG [net.sf.hibernate.util.DTDEntityResolver] - found http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd in classpath
2005-08-02 17:26:22,385 INFO [net.sf.hibernate.cfg.Binder] - Mapping class: net.das20as10.model.Post -> post
2005-08-02 17:26:22,385 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: id -> id, type: long
2005-08-02 17:26:22,385 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: title -> title, type: string
2005-08-02 17:26:22,385 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: message -> message, type: text
2005-08-02 17:26:22,385 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: timestamp -> timestamp, type: timestamp
2005-08-02 17:26:22,385 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: visible -> visible, type: boolean
2005-08-02 17:26:22,395 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: author -> author, type: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,395 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: replys, type: java.util.Set
2005-08-02 17:26:22,395 INFO [net.sf.hibernate.cfg.Binder] - Mapping subclass: net.das20as10.model.ForumTopic -> post
2005-08-02 17:26:22,395 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: forum -> forum, type: net.das20as10.model.Forum
2005-08-02 17:26:22,395 INFO [net.sf.hibernate.cfg.Binder] - Mapping subclass: net.das20as10.model.Reply -> post
2005-08-02 17:26:22,395 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: forum -> forum, type: net.das20as10.model.Forum
2005-08-02 17:26:22,395 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped property: parent -> parent, type: net.das20as10.model.Post
2005-08-02 17:26:22,395 INFO [net.sf.hibernate.cfg.Configuration] - Configured SessionFactory: null
2005-08-02 17:26:22,395 DEBUG [net.sf.hibernate.cfg.Configuration] - properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.connection.password=, hibernate.cache.provider_class=net.sf.ehcache.hibernate.Provider, sun.boot.library.path=C:\j2sdk1.4.2_03\jre\bin, java.vm.version=1.4.2_03-b02, hibernate.proxool.pool_alias=pool1, hibernate.connection.username=root, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, hibernate.cache.use_query_cache=true, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=PT, sun.os.patch.level=Service Pack 4, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Programas\eclipse\workspace\das20as10.net, java.runtime.version=1.4.2_03-b02, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\j2sdk1.4.2_03\jre\lib\endorsed, os.arch=x86, hibernate.c3p0.max_statements=0, java.io.tmpdir=C:\DOCUME~1\ADMINI~1\DEFINI~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows 2000, sun.java2d.fontpath=, hibernate.cache.region_prefix=hibernate.test, java.library.path=C:\j2sdk1.4.2_03\bin;.;C:\WINNT\system32;C:\WINNT;C:\CBuilderX\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;C:\Programas\Seagate Software\NOTES\;C:\Programas\Seagate Software\NOTES\DATA\;C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl;C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\j2sdk1.4.2_03\bin;C:\Programas\doxygen\bin;C:\Programas\cruisecontrol-2.1.6\main\bin;C:\programas\tortoisecvs;C:\ssh\bin;C:\Programas\cvs;C:\apache-ant-1.6.2\bin;C:\JCSC-0.97\bin;C:\Python23;C:\CBuilderX\bin;C:\Programas\SSH Communications Security\SSH Secure Shell;C:\Python23, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.connection.pool_size=1, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.0, hibernate.jdbc.use_scrollable_resultset=true, user.home=C:\Documents and Settings\Administrador, user.timezone=Europe/London, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.connection.driver_class=com.mysql.jdbc.Driver, show_sql=true, java.class.path=/c:/Programas/eclipse/plugins/org.eclipse.jdt.junit_3.0.0/junitsupport.jar;/c:/Programas/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.0.0/junitruntime.jar;C:\Programas\eclipse\workspace\das20as10.net\bin;C:\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\c3p0-0.8.4.5.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\cglib-full-2.0.2.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-logging.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\dbunit-2.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\dom4j-1.4.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\ehcache-0.9.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\hibern8ide.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\hibernate-tools.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\junit.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\log4j-1.2.8.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\mysql-connector-java-3.0.9-stable-bin.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\odmg-3.0.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xalan-2.4.0.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xerces-2.4.0.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xml-apis.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-collections-2.1.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jta.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jstl.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\standard.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\httpunit-1.5.4.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\js-1.5R4.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\nekohtml-0.8.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xercesImpl-2.6.2.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jwebunit-1.2.jar;C:\jakarta-tomcat-5.0.28\common\lib\jsp-api.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\tagunit.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\hibernate2106-patched.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\struts.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-beanutils.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-collections.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-digester.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-fileupload.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-validator.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jakarta-oro.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\strutstest-2.1.3.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\java2html.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\Tidy.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\rss4j.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\navtag.jar, user.name=Administrador, hibernate.query.substitutions=true "TRUE", false "FALSE", yes 'Y', no 'N', hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=C:\j2sdk1.4.2_03\jre, sun.arch.data.model=32, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql:///das20as10, user.language=pt, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, hibernate.jdbc.use_streams_for_binary=true, java.version=1.4.2_03, java.ext.dirs=C:\j2sdk1.4.2_03\jre\lib\ext, sun.boot.class.path=C:\j2sdk1.4.2_03\jre\lib\rt.jar;C:\j2sdk1.4.2_03\jre\lib\i18n.jar;C:\j2sdk1.4.2_03\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_03\jre\lib\jsse.jar;C:\j2sdk1.4.2_03\jre\lib\jce.jar;C:\j2sdk1.4.2_03\jre\lib\charsets.jar;C:\j2sdk1.4.2_03\jre\classes, java.vendor=Sun Microsystems Inc., hibernate.jdbc.batch_size=0, hibernate.jdbc.use_scrollable_resultsets=true, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.statement_cache.size=0, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, hibernate.max_fetch_depth=1, sun.cpu.isalist=pentium i486 i386}
2005-08-02 17:26:22,395 INFO [net.sf.hibernate.cfg.Configuration] - processing one-to-many association mappings
2005-08-02 17:26:22,395 DEBUG [net.sf.hibernate.cfg.Binder] - Second pass for collection: net.das20as10.model.Topic.subtopics
2005-08-02 17:26:22,405 INFO [net.sf.hibernate.cfg.Binder] - Mapping collection: net.das20as10.model.Topic.subtopics -> topic
2005-08-02 17:26:22,405 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped collection key: parent, index: child_index, one-to-many: net.das20as10.model.Topic
2005-08-02 17:26:22,405 DEBUG [net.sf.hibernate.cfg.Binder] - Second pass for collection: net.das20as10.model.Article.pages
2005-08-02 17:26:22,405 INFO [net.sf.hibernate.cfg.Binder] - Mapping collection: net.das20as10.model.Article.pages -> page
2005-08-02 17:26:22,405 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped collection key: article, one-to-many: net.das20as10.model.Page
2005-08-02 17:26:22,415 DEBUG [net.sf.hibernate.cfg.Binder] - Second pass for collection: net.das20as10.model.Article.resources
2005-08-02 17:26:22,415 INFO [net.sf.hibernate.cfg.Binder] - Mapping collection: net.das20as10.model.Article.resources -> resource
2005-08-02 17:26:22,415 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped collection key: article, one-to-many: net.das20as10.model.Resource
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Binder] - Second pass for collection: net.das20as10.model.ForumGroup.forums
2005-08-02 17:26:22,425 INFO [net.sf.hibernate.cfg.Binder] - Mapping collection: net.das20as10.model.ForumGroup.forums -> forum
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped collection key: forum_group, one-to-many: net.das20as10.model.Forum
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Binder] - Second pass for collection: net.das20as10.model.Forum.topics
2005-08-02 17:26:22,425 INFO [net.sf.hibernate.cfg.Binder] - Mapping collection: net.das20as10.model.Forum.topics -> post
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped collection key: forum, one-to-many: net.das20as10.model.ForumTopic
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Binder] - Second pass for collection: net.das20as10.model.Post.replys
2005-08-02 17:26:22,425 INFO [net.sf.hibernate.cfg.Binder] - Mapping collection: net.das20as10.model.Post.replys -> post
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Binder] - Mapped collection key: parent, one-to-many: net.das20as10.model.Reply
2005-08-02 17:26:22,425 INFO [net.sf.hibernate.cfg.Configuration] - processing one-to-one association property references
2005-08-02 17:26:22,425 INFO [net.sf.hibernate.cfg.Configuration] - processing foreign key constraints
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Administrator
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Topic
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Topic
2005-08-02 17:26:22,425 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Article
2005-08-02 17:26:22,435 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.ForumGroup
2005-08-02 17:26:22,435 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Administrator
2005-08-02 17:26:22,435 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Article
2005-08-02 17:26:22,435 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Post
2005-08-02 17:26:22,435 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.AuthenticatedUser
2005-08-02 17:26:22,435 DEBUG [net.sf.hibernate.cfg.Configuration] - resolving reference to class: net.das20as10.model.Forum
2005-08-02 17:26:22,456 INFO [net.sf.hibernate.dialect.Dialect] - Using dialect: net.sf.hibernate.dialect.MySQLDialect
2005-08-02 17:26:22,466 INFO [net.sf.hibernate.cfg.SettingsFactory] - Maximim outer join fetch depth: 1
2005-08-02 17:26:22,476 INFO [net.sf.hibernate.cfg.SettingsFactory] - Use outer join fetching: true
2005-08-02 17:26:22,476 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider] - Using Hibernate built-in connection pool (not for production use!)
2005-08-02 17:26:22,486 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider] - Hibernate connection pool size: 1
2005-08-02 17:26:22,486 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider] - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql:///das20as10
2005-08-02 17:26:22,486 INFO [net.sf.hibernate.connection.DriverManagerConnectionProvider] - connection properties: {user=root, password=}
2005-08-02 17:26:22,486 INFO [net.sf.hibernate.transaction.TransactionManagerLookupFactory] - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
2005-08-02 17:26:22,486 DEBUG [net.sf.hibernate.connection.DriverManagerConnectionProvider] - total checked-out connections: 0
2005-08-02 17:26:22,486 DEBUG [net.sf.hibernate.connection.DriverManagerConnectionProvider] - opening new JDBC connection
2005-08-02 17:26:22,516 DEBUG [net.sf.hibernate.connection.DriverManagerConnectionProvider] - created connection to: jdbc:mysql:///das20as10, Isolation Level: 4
2005-08-02 17:26:22,516 DEBUG [net.sf.hibernate.connection.DriverManagerConnectionProvider] - returning connection to pool, pool size: 1
2005-08-02 17:26:22,516 INFO [net.sf.hibernate.cfg.SettingsFactory] - Use scrollable result sets: true
2005-08-02 17:26:22,516 INFO [net.sf.hibernate.cfg.SettingsFactory] - Use JDBC3 getGeneratedKeys(): true
2005-08-02 17:26:22,516 INFO [net.sf.hibernate.cfg.SettingsFactory] - Optimize cache for minimal puts: false
2005-08-02 17:26:22,516 INFO [net.sf.hibernate.cfg.SettingsFactory] - echoing all SQL to stdout
2005-08-02 17:26:22,516 INFO [net.sf.hibernate.cfg.SettingsFactory] - Query language substitutions: {no='N', true="TRUE", yes='Y', false="FALSE"}
2005-08-02 17:26:22,526 INFO [net.sf.hibernate.cfg.SettingsFactory] - cache provider: net.sf.ehcache.hibernate.Provider
2005-08-02 17:26:22,526 INFO [net.sf.hibernate.cfg.SettingsFactory] - query cache factory: net.sf.hibernate.cache.StandardQueryCacheFactory
2005-08-02 17:26:22,536 INFO [net.sf.hibernate.cfg.Configuration] - instantiating and configuring caches
2005-08-02 17:26:22,736 INFO [net.sf.hibernate.impl.SessionFactoryImpl] - building session factory
2005-08-02 17:26:22,746 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] - instantiating session factory with properties: {java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition, hibernate.connection.password=, hibernate.cache.provider_class=net.sf.ehcache.hibernate.Provider, sun.boot.library.path=C:\j2sdk1.4.2_03\jre\bin, java.vm.version=1.4.2_03-b02, hibernate.proxool.pool_alias=pool1, hibernate.connection.username=root, java.vm.vendor=Sun Microsystems Inc., java.vendor.url=http://java.sun.com/, path.separator=;, hibernate.cache.use_query_cache=true, java.vm.name=Java HotSpot(TM) Client VM, file.encoding.pkg=sun.io, user.country=PT, sun.os.patch.level=Service Pack 4, java.vm.specification.name=Java Virtual Machine Specification, user.dir=C:\Programas\eclipse\workspace\das20as10.net, java.runtime.version=1.4.2_03-b02, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.endorsed.dirs=C:\j2sdk1.4.2_03\jre\lib\endorsed, os.arch=x86, hibernate.c3p0.max_statements=0, java.io.tmpdir=C:\DOCUME~1\ADMINI~1\DEFINI~1\Temp\, line.separator=
, java.vm.specification.vendor=Sun Microsystems Inc., user.variant=, os.name=Windows 2000, sun.java2d.fontpath=, hibernate.cache.region_prefix=hibernate.test, java.library.path=C:\j2sdk1.4.2_03\bin;.;C:\WINNT\system32;C:\WINNT;C:\CBuilderX\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\system32\WBEM;C:\Programas\Seagate Software\NOTES\;C:\Programas\Seagate Software\NOTES\DATA\;C:\PROGRA~1\Borland\CBUILD~1\Projects\Bpl;C:\PROGRA~1\Borland\CBUILD~1\Bin;C:\j2sdk1.4.2_03\bin;C:\Programas\doxygen\bin;C:\Programas\cruisecontrol-2.1.6\main\bin;C:\programas\tortoisecvs;C:\ssh\bin;C:\Programas\cvs;C:\apache-ant-1.6.2\bin;C:\JCSC-0.97\bin;C:\Python23;C:\CBuilderX\bin;C:\Programas\SSH Communications Security\SSH Secure Shell;C:\Python23, java.specification.name=Java Platform API Specification, java.class.version=48.0, hibernate.connection.pool_size=1, java.util.prefs.PreferencesFactory=java.util.prefs.WindowsPreferencesFactory, os.version=5.0, hibernate.jdbc.use_scrollable_resultset=true, user.home=C:\Documents and Settings\Administrador, user.timezone=Europe/London, java.awt.printerjob=sun.awt.windows.WPrinterJob, file.encoding=Cp1252, java.specification.version=1.4, hibernate.connection.driver_class=com.mysql.jdbc.Driver, show_sql=true, java.class.path=/c:/Programas/eclipse/plugins/org.eclipse.jdt.junit_3.0.0/junitsupport.jar;/c:/Programas/eclipse/plugins/org.eclipse.jdt.junit.runtime_3.0.0/junitruntime.jar;C:\Programas\eclipse\workspace\das20as10.net\bin;C:\jakarta-tomcat-5.0.28\common\lib\servlet-api.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\c3p0-0.8.4.5.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\cglib-full-2.0.2.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-logging.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\dbunit-2.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\dom4j-1.4.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\ehcache-0.9.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\hibern8ide.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\hibernate-tools.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\junit.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\log4j-1.2.8.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\mysql-connector-java-3.0.9-stable-bin.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\odmg-3.0.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xalan-2.4.0.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xerces-2.4.0.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xml-apis.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-collections-2.1.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jta.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jstl.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\standard.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\httpunit-1.5.4.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\js-1.5R4.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\nekohtml-0.8.1.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\xercesImpl-2.6.2.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jwebunit-1.2.jar;C:\jakarta-tomcat-5.0.28\common\lib\jsp-api.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\tagunit.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\hibernate2106-patched.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\struts.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-beanutils.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-collections.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-digester.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-fileupload.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\commons-validator.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\jakarta-oro.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\strutstest-2.1.3.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\java2html.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\Tidy.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\rss4j.jar;C:\Programas\eclipse\workspace\das20as10.net\web\WEB-INF\lib\navtag.jar, user.name=Administrador, hibernate.query.substitutions=true "TRUE", false "FALSE", yes 'Y', no 'N', hibernate.show_sql=true, java.vm.specification.version=1.0, java.home=C:\j2sdk1.4.2_03\jre, sun.arch.data.model=32, hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect, hibernate.connection.url=jdbc:mysql:///das20as10, user.language=pt, java.specification.vendor=Sun Microsystems Inc., awt.toolkit=sun.awt.windows.WToolkit, hibernate.cglib.use_reflection_optimizer=true, java.vm.info=mixed mode, hibernate.jdbc.use_streams_for_binary=true, java.version=1.4.2_03, java.ext.dirs=C:\j2sdk1.4.2_03\jre\lib\ext, sun.boot.class.path=C:\j2sdk1.4.2_03\jre\lib\rt.jar;C:\j2sdk1.4.2_03\jre\lib\i18n.jar;C:\j2sdk1.4.2_03\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_03\jre\lib\jsse.jar;C:\j2sdk1.4.2_03\jre\lib\jce.jar;C:\j2sdk1.4.2_03\jre\lib\charsets.jar;C:\j2sdk1.4.2_03\jre\classes, java.vendor=Sun Microsystems Inc., hibernate.jdbc.batch_size=0, hibernate.jdbc.use_scrollable_resultsets=true, file.separator=\, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, hibernate.statement_cache.size=0, sun.io.unicode.encoding=UnicodeLittle, sun.cpu.endian=little, hibernate.max_fetch_depth=1, sun.cpu.isalist=pentium i486 i386}
2005-08-02 17:26:22,916 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.AuthenticatedUser, BulkBeanException: Property is private (property setLogin)
2005-08-02 17:26:22,946 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.Forum, BulkBeanException: Property is private (property setTopics)
2005-08-02 17:26:22,996 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.ForumGroup, BulkBeanException: Property is private (property setForums)
2005-08-02 17:26:23,016 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.Administrator, BulkBeanException: Property is private (property setLogin)
2005-08-02 17:26:23,036 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.Article, BulkBeanException: Cannot find specified property (property setAuthor)
2005-08-02 17:26:23,046 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.User, BulkBeanException: Property is private (property setLogin)
2005-08-02 17:26:23,056 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.Reply, BulkBeanException: Property is private (property setReplys)
2005-08-02 17:26:23,076 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.Post, BulkBeanException: Property is private (property setReplys)
2005-08-02 17:26:23,116 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.ForumTopic, BulkBeanException: Property is private (property setReplys)
2005-08-02 17:26:23,126 INFO [net.sf.hibernate.util.ReflectHelper] - reflection optimizer disabled for: net.das20as10.model.Topic, BulkBeanException: Property is private (property setParent)
2005-08-02 17:26:23,337 DEBUG [net.sf.hibernate.impl.SessionFactoryObjectFactory] - initializing class SessionFactoryObjectFactory
2005-08-02 17:26:23,337 DEBUG [net.sf.hibernate.impl.SessionFactoryObjectFactory] - registered: 4028804d057803da01057803dcdf0000 (unnamed)
2005-08-02 17:26:23,337 INFO [net.sf.hibernate.impl.SessionFactoryObjectFactory] - Not binding factory to JNDI, no JNDI name configured
2005-08-02 17:26:23,337 DEBUG [net.sf.hibernate.impl.SessionFactoryImpl] - instantiated session factory
2005-08-02 17:26:23,347 INFO [net.sf.hibernate.cache.UpdateTimestampsCache] - starting update timestamps cache at region: net.sf.hibernate.cache.UpdateTimestampsCache
2005-08-02 17:26:23,357 DEBUG [net.sf.ehcache.CacheManager] - Creating new CacheManager with default config
2005-08-02 17:26:23,357 DEBUG [net.sf.ehcache.CacheManager] - Configuring ehcache from classpath.
2005-08-02 17:26:23,367 WARN [net.sf.ehcache.config.Configurator] - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Programas/eclipse/workspace/das20as10.net/web/WEB-INF/lib/ehcache-0.9.jar!/ehcache-failsafe.xml
2005-08-02 17:26:23,377 DEBUG [net.sf.ehcache.config.Configuration$DiskStore] - Disk Store Path: C:\DOCUME~1\ADMINI~1\DEFINI~1\Temp\
2005-08-02 17:26:23,377 WARN [net.sf.ehcache.hibernate.Plugin] - Could not find configuration for net.sf.hibernate.cache.UpdateTimestampsCache. Configuring using the defaultCache settings.
2005-08-02 17:26:23,397 DEBUG [net.sf.ehcache.store.MemoryStore] - net.sf.hibernate.cache.UpdateTimestampsCache Cache: Using SpoolingLinkedHashMap implementation
2005-08-02 17:26:23,397 DEBUG [net.sf.ehcache.store.MemoryStore] - initialized MemoryStore for net.sf.hibernate.cache.UpdateTimestampsCache
2005-08-02 17:26:23,417 INFO [net.sf.hibernate.cache.StandardQueryCache] - starting query cache at region: net.sf.hibernate.cache.StandardQueryCache
2005-08-02 17:26:23,417 DEBUG [net.sf.ehcache.CacheManager] - Attempting to create an existing instance. Existing instance returned.
2005-08-02 17:26:23,417 WARN [net.sf.ehcache.hibernate.Plugin] - Could not find configuration for net.sf.hibernate.cache.StandardQueryCache. Configuring using the defaultCache settings.
2005-08-02 17:26:23,417 DEBUG [net.sf.ehcache.store.MemoryStore] - net.sf.hibernate.cache.StandardQueryCache Cache: Using SpoolingLinkedHashMap implementation
2005-08-02 17:26:23,417 DEBUG [net.sf.ehcache.store.MemoryStore] - initialized MemoryStore for net.sf.hibernate.cache.StandardQueryCache
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.impl.SessionImpl] - opened session
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.transaction.JDBCTransaction] - begin
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.connection.DriverManagerConnectionProvider] - total checked-out connections: 0
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.connection.DriverManagerConnectionProvider] - using pooled JDBC connection, pool size: 0
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.transaction.JDBCTransaction] - current autocommit status:false
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.impl.SessionImpl] - loading [net.das20as10.model.User#1]
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.impl.SessionImpl] - attempting to resolve [net.das20as10.model.User#1]
2005-08-02 17:26:23,477 DEBUG [net.sf.hibernate.impl.SessionImpl] - object not resolved in any cache [net.das20as10.model.User#1]
2005-08-02 17:26:23,487 DEBUG [net.sf.hibernate.persister.EntityPersister] - Materializing entity: [net.das20as10.model.User#1]
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.impl.BatcherImpl] - about to open: 0 open PreparedStatements, 0 open ResultSets
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.SQL] - select user0_.id as id0_, user0_.type as type0_, user0_.login as login0_, user0_.password as password0_, user0_.name as name0_, user0_.email as email0_, user0_.website as website0_, user0_.active as active0_, user0_.confirmed as confirmed0_, user0_.inscription_date as inscrip10_0_, user0_.activation_date as activat11_0_, user0_.biography as biography0_ from user user0_ where user0_.id=?
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.impl.BatcherImpl] - preparing statement
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.type.LongType] - binding '1' to parameter: 1
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.loader.Loader] - processing result set
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.loader.Loader] - result row: 1
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.type.StringType] - returning 'administrator' as column: type0_
2005-08-02 17:26:23,497 DEBUG [net.sf.hibernate.loader.Loader] - Initializing object from ResultSet: 1
2005-08-02 17:26:23,517 DEBUG [net.sf.hibernate.loader.Loader] - Hydrating entity: net.das20as10.model.Administrator#1
2005-08-02 17:26:23,517 DEBUG [net.sf.hibernate.type.StringType] - returning 'miguel' as column: login0_
2005-08-02 17:26:23,517 DEBUG [net.sf.hibernate.type.StringType] - returning 'abe6db4c9f5484fae8d79f2e868a673c' as column: password0_
2005-08-02 17:26:23,517 DEBUG [net.sf.hibernate.type.StringType] - returning 'miguel|guinada' as column: name0_
2005-08-02 17:26:23,517 DEBUG [net.sf.hibernate.type.StringType] - returning
'dexter@diablero.no-ip.org'