-->
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.  [ 3 posts ] 
Author Message
 Post subject: Not able to set FavouriteCategoryId (One class Multi table)
PostPosted: Mon Jan 30, 2006 8:36 am 
Beginner
Beginner

Joined: Fri Dec 23, 2005 3:26 am
Posts: 21
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:3.0.1



Mapping documents:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">


<hibernate-mapping>

<class name="org.springframework.samples.jpetstore.domain.Account" table = "account" lazy="false">

<id name="username" type="string" unsaved-value="null" >
<column name="userid" sql-type="char(32)" not-null="true"/>
<generator class="assigned"/>
</id>

<property name="email"/>
<property name="firstName"/>
<property name="lastName"/>
<property name="status"/>
<property name="address1" column="addr1" />
<property name="address2" column="addr2" />
<property name="city"/>
<property name="state"/>
<property name="zip"/>
<property name="country"/>
<property name="phone"/>

<!--<one-to-one name="bannerName" class="org.springframework.samples.jpetstore.domain.Bannerdata"/>-->


<join table="profile">
<key column="userid" property-ref="username"/>
<property name="favouriteCategoryId" column="favcategory"/>
<property name="languagePreference" column="langpref"/>
<property name="bannerOption" column="banneropt"/>
<property name="listOption" column="mylistopt" />
</join>


<join table="signon">
<key column="username" property-ref="username"/>
<property name="password"/>
</join>

</class>

<class name="org.springframework.samples.jpetstore.domain.Category" lazy="false" table="category">
<id name="categoryId" type="string" unsaved-value="null" >
<column name="catid" sql-type="varchar" not-null="true"/>
<!--<generator class="uuid.hex"/>-->
</id>
<property name="name"/>
<property name="description" column="descn"/>
</class>

<class name="org.springframework.samples.jpetstore.domain.Product" table="product" lazy="false">

<id name="productId" type="string" unsaved-value="null" >
<column name="productid" sql-type="varchar" not-null="true"/>
<!-- generator class="uuid.hex"/ -->
</id>
<property name="categoryId" column="category"/>
<property name="name" />
<property name="description" column="descn" />

</class>
<class name = "org.springframework.samples.jpetstore.domain.Item" table = "item" lazy="false">
<id name="itemId" type="string" unsaved-value="null" >
<column name="itemid" sql-type="varchar" not-null="true"/>
<generator class="uuid.hex"/>
</id>

<!-- <join table="inventory">
<key column="itemid" />
<property name="quantity" column="qty" />
</join>
-->
<one-to-one name="product" class="org.springframework.samples.jpetstore.domain.Product"/>
<property name="supplierId" column="supplier"/>
<property name="productId" column="productid" />

<!--<one-to-one name="productId" class="org.springframework.samples.jpetstore.domain.Product"/>-->
<!--<join table="product">
<key column="productid" property-ref="productId"/>
</join>
-->

<property name="listPrice" column="listprice" />
<property name="unitCost" column="unitcost" />
<property name="status" />
<property name="attribute1" column="attr1"/>
<property name="attribute2" column="attr2"/>
<property name="attribute3" column="attr3"/>
<property name="attribute4" column="attr4"/>
<property name="attribute5" column="attr5"/>

</class>

<class name="org.springframework.samples.jpetstore.domain.Order" table="orders" lazy="false" >


<id name="orderId" type="integer" unsaved-value="null" >
<column name="orderid" sql-type="integer" not-null="true"/>
<generator class="uuid.hex"/>
</id>
<one-to-one name="username" class="org.springframework.samples.jpetstore.domain.Account" />
<property name="orderDate" column="orderdate"/>
<property name="shipAddress1" column="shipaddr1"/>
<property name="shipAddress2" column="shipaddr2"/>
<property name="shipCity" column="shipcity"/>
<property name="shipState" column="shipstate"/>
<property name="shipZip" column="shipzip"/>
<property name="shipCountry" column="shipcountry"/>
<property name="billAddress1" column="billaddr1"/>
<property name="billAddress2" column="billaddr2"/>
<property name="billCity" column="billcity"/>
<property name="billState" column="billstate"/>
<property name="billZip" column="billzip"/>
<property name="billCountry" column="billcountry"/>
<property name="courier" />
<property name="totalPrice" />
<property name="billToFirstName" column="billtofirstname"/>
<property name="billToLastName" column="billtolastname"/>
<property name="shipToFirstName" column="shiptofirstname"/>
<property name="shipToLastName" column="shiptolastname"/>
<property name="creditCard" column="creditcard"/>
<property name="expiryDate" column="exprdate"/>
<property name="cardType" column="cardtype"/>
<property name="locale"/>
<one-to-one name="status" class="org.springframework.samples.jpetstore.domain.Account"/>

<!--<list name="lineItems" table="lineitem">
<key column="orderid"/>
<list-index column="linenum"/>
</list>
-->
</class>


<class name="org.springframework.samples.jpetstore.domain.LineItem" table="lineitem" lazy="false">

<composite-id>
<key-property name="orderId" column="orderid"/>
<key-property name="lineNumber" column="linenum"/>
</composite-id>
<property name="item" column="itemid" not-null="true"/>
<property name="quantity" column="quantity" not-null="true"/>
<!--<one-to-one name="quantity" class="org.springframework.samples.jpetstore.domain.CartItem"/>-->
<property name="unitPrice" column="unitprice" not-null="true"/>
</class>


<class name="org.springframework.samples.jpetstore.domain.Bannerdata" table="bannerdata">
<composite-id>
<key-property name="favouriteCategoryId" column="favcategory"/>
</composite-id>

<!-- <id name="favouriteCategoryId" type="string" unsaved-value="null" >
<column name="favcategory" sql-type="varchar(80)" not-null="true"/>
</id>
-->
<!--<id name="username" type="string" unsaved-value="null" >
<column name="userid" sql-type="varchar(80)" not-null="true"/>
</id>-->
<property name="bannerName" column="bannername"/>
</class>
<!--
<class name="org.springframework.samples.jpetstore.domain.Profile" lazy="false" table="profile">
<id name="username" type="string" unsaved-value="null" >
<column name="userid" sql-type="char(32)" not-null="true"/>
<generator class="assigned"/>
</id>
<property name="favouriteCategoryId" column="favcategory"/>
<property name="languagePreference" column="langpref"/>
<property name="bannerOption" column="banneropt"/>
<property name="listOption" column="mylistopt" />
</class>
-->
<!--
<class name="org.springframework.samples.jpetstore.domain.CartItem" table="lineitem">
<composite-id>
<key-property name="orderId" column="orderid"/>
<key-property name="lineNumber" column="linenum"/>
</composite-id>
<property name="quantity" column="quantity"/>
</class>
-->
</hibernate-mapping>





Code between sessionFactory.openSession() and session.close():

using springs hibernatetemplate



Full stack trace of any exception that occurs:

no exception







Name and version of the database you are using:
mysql 4.0


The generated SQL (show_sql=true):
select account0_.userid as userid0_, account0_.email as email0_0_, account0_.firstName as firstName0_0_, account0_.lastName as lastName0_0_, account0_.status as status0_0_, account0_.addr1 as addr6_0_0_, account0_.addr2 as addr7_0_0_, account0_.city as city0_0_, account0_.state as state0_0_, account0_.zip as zip0_0_, account0_.country as country0_0_, account0_.phone as phone0_0_, account0_1_.favcategory as favcateg2_1_0_, account0_1_.langpref as langpref1_0_, account0_1_.banneropt as banneropt1_0_, account0_1_.mylistopt as mylistopt1_0_, account0_2_.password as password2_0_ from account account0_ inner join profile account0_1_ on account0_.userid=account0_1_.userid inner join signon account0_2_ on account0_.userid=account0_2_.username where account0_.userid='j2ee'




Debug level Hibernate log excerpt:
INFO: In SignonInterceptor.preHandle:::::::::::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.SignonInterceptor preHandle
INFO: userSession:::::::::::::org.springframework.samples.jpetstore.web.spring.UserSession@823c6d
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController formBackingObject
INFO: In AccountFormController.formBackingObject:::::::::::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController formBackingObject
INFO: userSession::::::::::org.springframework.samples.jpetstore.web.spring.UserSession@823c6d
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController formBackingObject
INFO: userSession is not null
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController formBackingObject
INFO: AccountFormController.formBackingObject()=================>>>>>userSession.getAccount()=========>org.springframework.samples.jpetstore.domain.Account@1ba1d9
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController formBackingObject
INFO: AccountFormController.formBackingObject()=================>>>>>FavouriteCategoryId==============>null
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getUsername
INFO: In Account.getUsername::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController formBackingObject
INFO: AccountFormController.formBackingObject()=================>>>>>Username=========================>j2ee
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getUsername
INFO: In Account.getUsername::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getAccount
INFO: In PetStoreImpl.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplAccountDao getAccount
INFO: In HibernateImplAccountDao.getAccount:::::::::::::
Hibernate: select account0_.userid as userid0_, account0_.email as email0_0_, account0_.firstName as firstName0_0_, account0_.lastName as lastName0_0_, account0_.status as status0_0_, account0_.addr1 as addr6_0_0_, account0_.addr2 as addr7_0_0_, account0_.city as city0_0_, account0_.state as state0_0_, account0_.zip as zip0_0_, account0_.country as country0_0_, account0_.phone as phone0_0_, account0_1_.favcategory as favcateg2_1_0_, account0_1_.langpref as langpref1_0_, account0_1_.banneropt as banneropt1_0_, account0_1_.mylistopt as mylistopt1_0_, account0_2_.password as password2_0_ from account account0_ inner join profile account0_1_ on account0_.userid=account0_1_.userid inner join signon account0_2_ on account0_.userid=account0_2_.username where account0_.userid=?
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setUsername
INFO: In Account.setUsername::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setEmail
INFO: In Account.setEmail::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setFirstName
INFO: In Account.setFirstName::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setLastName
INFO: In Account.setLastName::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setStatus
INFO: In Account.setStatus::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setAddress1
INFO: In Account.setAddress1::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setAddress2
INFO: In Account.setAddress2::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setCity
INFO: In Account.setCity::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setState
INFO: In Account.setState::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setZip
INFO: In Account.setZip::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setCountry
INFO: In Account.setCountry::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setPhone
INFO: In Account.setPhone::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setFavouriteCategoryId
INFO: In Account.setFavouriteCategoryId:::: null
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setLanguagePreference
INFO: In Account.setLanguagePreference:::: english
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setBannerOption
INFO: In Account.setBannerOption::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setListOption
INFO: In Account.setListOption::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account setPassword
INFO: In Account.setPassword::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplAccountDao getAccount
INFO: HibernateImplAccountDao.getAccount======>account.getFavouriteCategoryId()===>null
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getAccount
INFO: PetStoreImpl.getAccount(username):::::::::::org.springframework.samples.jpetstore.domain.Account@e0420b
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm <init>
INFO: In AccountActionForm.AccountForm(Account account) ::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController referenceData
INFO: In AccountFormController.referenceData:::::::::::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getCategoryList
INFO: In PetStoreImpl.getCategoryList::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplCategoryDao getCategoryList
INFO: In HibernateImplCategoryDao.getCategoryList:::::::::::::
Hibernate: select category0_.catid as catid, category0_.name as name3_, category0_.descn as descn3_ from category category0_ order by category0_.catid, category0_.name, category0_.descn
In Category.setCategoryId::::::::BIRDS
In Category.setCategoryId::::::::CATS
In Category.setCategoryId::::::::DOGS
In Category.setCategoryId::::::::FISH
In Category.setCategoryId::::::::REPTILES
In Category.setName::::::::Birds
In Category.setDescription::::::::<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>
In Category.setName::::::::Cats
In Category.setDescription::::::::<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>
In Category.setName::::::::Dogs
In Category.setDescription::::::::<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>
In Category.setName::::::::Fish
In Category.setDescription::::::::<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>
In Category.setName::::::::Reptiles
In Category.setDescription::::::::<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getCategoryList
INFO: In PetStoreImpl.getCategoryList::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplCategoryDao getCategoryList
INFO: In HibernateImplCategoryDao.getCategoryList:::::::::::::
Hibernate: select category0_.catid as catid, category0_.name as name3_, category0_.descn as descn3_ from category category0_ order by category0_.catid, category0_.name, category0_.descn
In Category.setCategoryId::::::::BIRDS
In Category.setCategoryId::::::::CATS
In Category.setCategoryId::::::::DOGS
In Category.setCategoryId::::::::FISH
In Category.setCategoryId::::::::REPTILES
In Category.setName::::::::Birds
In Category.setDescription::::::::<image src="../images/birds_icon.gif"><font size="5" color="blue"> Birds</font>
In Category.setName::::::::Cats
In Category.setDescription::::::::<image src="../images/cats_icon.gif"><font size="5" color="blue"> Cats</font>
In Category.setName::::::::Dogs
In Category.setDescription::::::::<image src="../images/dogs_icon.gif"><font size="5" color="blue"> Dogs</font>
In Category.setName::::::::Fish
In Category.setDescription::::::::<image src="../images/fish_icon.gif"><font size="5" color="blue"> Fish</font>
In Category.setName::::::::Reptiles
In Category.setDescription::::::::<image src="../images/reptiles_icon.gif"><font size="5" color="blue"> Reptiles</font>
In toString::::::::
In Category.getCategoryId::::::::BIRDS
In toString::::::::
In Category.getCategoryId::::::::CATS
In toString::::::::
In Category.getCategoryId::::::::DOGS
In toString::::::::
In Category.getCategoryId::::::::FISH
In toString::::::::
In Category.getCategoryId::::::::REPTILES
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountFormController referenceData
INFO: this.petStore.getCategoryList()=================>>>>>[BIRDS, CATS, DOGS, FISH, REPTILES]
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.ui.context.support.ResourceBundleThemeSource getTheme
INFO: Theme created: name 'theme', basename [theme]
Jan 30, 2006 5:50:49 PM org.springframework.web.util.ExpressionEvaluationUtils <clinit>
INFO: Using JSP 2.0 ExpressionEvaluator
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm isNewAccount
INFO: In AccountForm.isNewAccount:::: false
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm isNewAccount
INFO: In AccountForm.isNewAccount:::: false
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm isNewAccount
INFO: In AccountForm.isNewAccount:::: false
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm isNewAccount
INFO: In AccountForm.isNewAccount:::: false
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getUsername
INFO: In Account.getUsername::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getPassword
INFO: In Account.getPassword::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getRepeatedPassword
INFO: In AccountForm.getRepeatedPassword::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getFirstName
INFO: In Account.getFirstName::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getLastName
INFO: In Account.getLastName::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getEmail
INFO: In Account.getEmail::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getPhone
INFO: In Account.getPhone::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getAddress1
INFO: In Account.getAddress1::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.domain.Account getAddress2
INFO: In Account.getAddress2::::
Jan 30, 2006 5:50:49 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account getCity
INFO: In Account.getCity::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account getState
INFO: In Account.getState::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account getZip
INFO: In Account.getZip::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account getCountry
INFO: In Account.getCountry::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account getLanguagePreference
INFO: In Account.getLanguagePreference::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
In Category.getCategoryId::::::::BIRDS
In toString::::::::
In Category.getCategoryId::::::::BIRDS
In Category.getName::::::::Birds
In Category.getCategoryId::::::::CATS
In toString::::::::
In Category.getCategoryId::::::::CATS
In Category.getName::::::::Cats
In Category.getCategoryId::::::::DOGS
In toString::::::::
In Category.getCategoryId::::::::DOGS
In Category.getName::::::::Dogs
In Category.getCategoryId::::::::FISH
In toString::::::::
In Category.getCategoryId::::::::FISH
In Category.getName::::::::Fish
In Category.getCategoryId::::::::REPTILES
In toString::::::::
In Category.getCategoryId::::::::REPTILES
In Category.getName::::::::Reptiles
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account isListOption
INFO: In Account.isListOption:::: true
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.domain.Account isBannerOption
INFO: In Account.isBannerOption::::
Jan 30, 2006 5:50:50 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.SignonInterceptor preHandle
INFO: In SignonInterceptor.preHandle:::::::::::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.SignonInterceptor preHandle
INFO: userSession:::::::::::::org.springframework.samples.jpetstore.web.spring.UserSession@823c6d
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setAddress1
INFO: In Account.setAddress1::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setAddress2
INFO: In Account.setAddress2::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setBannerOption
INFO: In Account.setBannerOption::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setCity
INFO: In Account.setCity::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setCountry
INFO: In Account.setCountry::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setEmail
INFO: In Account.setEmail::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setFavouriteCategoryId
INFO: In Account.setFavouriteCategoryId:::: DOGS
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setFirstName
INFO: In Account.setFirstName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setLanguagePreference
INFO: In Account.setLanguagePreference:::: english
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setLastName
INFO: In Account.setLastName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setListOption
INFO: In Account.setListOption::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setPassword
INFO: In Account.setPassword::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setPhone
INFO: In Account.setPhone::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setState
INFO: In Account.setState::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setZip
INFO: In Account.setZip::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm setRepeatedPassword
INFO: In AccountForm.setRepeatedPassword::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountFormController onBindAndValidate
INFO: In AccountFormController.onBindAndValidate:::::::::::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.logic.AccountValidator validate
INFO: In AccountValidator.validate::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getFirstName
INFO: In Account.getFirstName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getLastName
INFO: In Account.getLastName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getEmail
INFO: In Account.getEmail::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPhone
INFO: In Account.getPhone::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getAddress1
INFO: In Account.getAddress1::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getCity
INFO: In Account.getCity::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getState
INFO: In Account.getState::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getZip
INFO: In Account.getZip::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getCountry
INFO: In Account.getCountry::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm isNewAccount
INFO: In AccountForm.isNewAccount:::: false
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPassword
INFO: In Account.getPassword::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPassword
INFO: In Account.getPassword::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPassword
INFO: In Account.getPassword::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getRepeatedPassword
INFO: In AccountForm.getRepeatedPassword::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountFormController onSubmit
INFO: In AccountFormController.onSubmit:::::::::::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountFormController onSubmit
INFO: accountForm.getAccount().getFavouriteCategoryId()================>>>>null
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm isNewAccount
INFO: In AccountForm.isNewAccount:::: false
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl updateAccount
INFO: In PetStoreImpl.updateAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplAccountDao updateAccount
INFO: In HibernateImplAccountDao.updateAccount(Account account):::::::::::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getUsername
INFO: In Account.getUsername::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getEmail
INFO: In Account.getEmail::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getFirstName
INFO: In Account.getFirstName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getLastName
INFO: In Account.getLastName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getStatus
INFO: In Account.getStatus::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getAddress1
INFO: In Account.getAddress1::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getAddress2
INFO: In Account.getAddress2::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getCity
INFO: In Account.getCity::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getState
INFO: In Account.getState::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getZip
INFO: In Account.getZip::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getCountry
INFO: In Account.getCountry::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPhone
INFO: In Account.getPhone::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getLanguagePreference
INFO: In Account.getLanguagePreference::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account isBannerOption
INFO: In Account.isBannerOption::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account isListOption
INFO: In Account.isListOption:::: true
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPassword
INFO: In Account.getPassword::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getUsername
INFO: In Account.getUsername::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getEmail
INFO: In Account.getEmail::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getFirstName
INFO: In Account.getFirstName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getLastName
INFO: In Account.getLastName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getStatus
INFO: In Account.getStatus::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getAddress1
INFO: In Account.getAddress1::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getAddress2
INFO: In Account.getAddress2::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getCity
INFO: In Account.getCity::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getState
INFO: In Account.getState::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getZip
INFO: In Account.getZip::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getCountry
INFO: In Account.getCountry::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPhone
INFO: In Account.getPhone::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getLanguagePreference
INFO: In Account.getLanguagePreference::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account isBannerOption
INFO: In Account.isBannerOption::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account isListOption
INFO: In Account.isListOption:::: true
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getPassword
INFO: In Account.getPassword::::
Hibernate: update account set email=?, firstName=?, lastName=?, status=?, addr1=?, addr2=?, city=?, state=?, zip=?, country=?, phone=? where userid=?
Hibernate: update profile set favcategory=?, langpref=?, banneropt=?, mylistopt=? where userid=?
Hibernate: update signon set password=? where username=?
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountFormController onSubmit
INFO: accountform is updated now========>in else
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account getUsername
INFO: In Account.getUsername::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getAccount
INFO: In PetStoreImpl.getAccount::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplAccountDao getAccount
INFO: In HibernateImplAccountDao.getAccount:::::::::::::
Hibernate: select account0_.userid as userid0_, account0_.email as email0_0_, account0_.firstName as firstName0_0_, account0_.lastName as lastName0_0_, account0_.status as status0_0_, account0_.addr1 as addr6_0_0_, account0_.addr2 as addr7_0_0_, account0_.city as city0_0_, account0_.state as state0_0_, account0_.zip as zip0_0_, account0_.country as country0_0_, account0_.phone as phone0_0_, account0_1_.favcategory as favcateg2_1_0_, account0_1_.langpref as langpref1_0_, account0_1_.banneropt as banneropt1_0_, account0_1_.mylistopt as mylistopt1_0_, account0_2_.password as password2_0_ from account account0_ inner join profile account0_1_ on account0_.userid=account0_1_.userid inner join signon account0_2_ on account0_.userid=account0_2_.username where account0_.userid=?
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setUsername
INFO: In Account.setUsername::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setEmail
INFO: In Account.setEmail::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setFirstName
INFO: In Account.setFirstName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setLastName
INFO: In Account.setLastName::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setStatus
INFO: In Account.setStatus::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setAddress1
INFO: In Account.setAddress1::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setAddress2
INFO: In Account.setAddress2::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setCity
INFO: In Account.setCity::::
Jan 30, 2006 5:51:01 PM org.springframework.samples.jpetstore.domain.Account setState
INFO: In Account.setState::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setZip
INFO: In Account.setZip::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setCountry
INFO: In Account.setCountry::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setPhone
INFO: In Account.setPhone::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setFavouriteCategoryId
INFO: In Account.setFavouriteCategoryId:::: null
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setLanguagePreference
INFO: In Account.setLanguagePreference:::: english
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setBannerOption
INFO: In Account.setBannerOption::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setListOption
INFO: In Account.setListOption::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account setPassword
INFO: In Account.setPassword::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplAccountDao getAccount
INFO: HibernateImplAccountDao.getAccount======>account.getFavouriteCategoryId()===>null
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getAccount
INFO: PetStoreImpl.getAccount(username):::::::::::org.springframework.samples.jpetstore.domain.Account@10ade7e
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession <init>
INFO: In UserSession.UserSession(Account account)::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.AccountFormController onSubmit
INFO: this.petStore.getAccount(this.petStore..getAccount().getFavouriteCategoryId()================>>>>null
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.AccountForm getAccount
INFO: In AccountForm.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account getFavouriteCategoryId
INFO: In Account.getFavouriteCategoryId::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getProductListByCategory
INFO: In PetStoreImpl.getProductListByCategory::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.dao.hibernate.HibernateImplProductDao getProductListByCategory
INFO: In HibernateImplProductDao.getProductListByCategory:::::::::::::null
Hibernate: select product0_.productid as productid, product0_.category as category4_, product0_.name as name4_, product0_.descn as descn4_ from product product0_ where product0_.category like 'null'
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.logic.PetStoreImpl getProductListByCategory
INFO: returning list from PetStoreImpl.getProductListByCategory[]
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession setMyList
INFO: In UserSession.setMyList::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account getFirstName
INFO: In Account.getFirstName::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account isBannerOption
INFO: In Account.isBannerOption::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.web.spring.UserSession getAccount
INFO: In UserSession.getAccount::::
Jan 30, 2006 5:51:02 PM org.springframework.samples.jpetstore.domain.Account getBannerName
INFO: In Account.getBannerName::::




Please note that I am not getting any exception but still the value of favouriteCategoryId is not getting set.

All the getter & setter for the same is written in the Account.java
whereas favcategory is the table name in the profile table.

Also favCategory is present in the bannerdata table.
For this I have written my class called Bannerdata.

I need to know why the value of favouriteCategoryId is not getting entered in the Database.

This application is the jpetstore application of spring getting done in hibernate.

Regards
Avinash

_________________
avinashb@cybage.com


Top
 Profile  
 
 Post subject: Not able to set FavouriteCategoryId (One class Multi table)
PostPosted: Mon Jan 30, 2006 8:43 am 
Beginner
Beginner

Joined: Fri Dec 23, 2005 3:26 am
Posts: 21
favcategory is the column name in the profile table & bannerdata table

Regards,
Avinash

_________________
avinashb@cybage.com


Top
 Profile  
 
 Post subject: Not able to set FavouriteCategoryId (One class Multi table)
PostPosted: Tue Jan 31, 2006 5:05 am 
Beginner
Beginner

Joined: Fri Dec 23, 2005 3:26 am
Posts: 21
Hi all,
I have got the solution for the above problem

I modified the above hbm.xml as follows

<join table="profile">
<key column="userid" property-ref="username"/>
<many-to-one name="bannerdata" class="org.springframework.samples.jpetstore.domain.Bannerdata" unique="true">
<column name="favcategory"/>
</many-to-one>

<!--<property name="favouriteCategoryId" column="favcategory"/>-->
<property name="languagePreference" column="langpref"/>
<property name="bannerOption" column="banneropt"/>
<property name="listOption" column="mylistopt" />
</join>

Also set the value of favouriteCategoryId in Bannerdata class.
Now things are working fine.

Regards,
Avinash

_________________
avinashb@cybage.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.