-->
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.  [ 2 posts ] 
Author Message
 Post subject: Object not deleting with Spring
PostPosted: Thu Jan 26, 2006 1:55 pm 
Newbie

Joined: Mon Jun 20, 2005 12:40 pm
Posts: 5
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1.1

Mapping documents:
User:
Code:
<?xml version="1.0" encoding="UTF-8"?>

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

<hibernate-mapping
>
    <class
        name="com.baselogic.yoursos.user.User"
        table="user"
        polymorphism="explicit"
    >
        <cache usage="read-write" />

        <id
            name="username"
            column="USERNAME"
            type="java.lang.String"
        >
            <generator class="assigned">
              <!-- 
                  To add non XDoclet generator parameters, create a file named
                  hibernate-generator-params-User.xml
                  containing the additional parameters and place it in your merge dir.
              -->
            </generator>
        </id>

        <property
            name="password"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PASSWORD"
        />

        <property
            name="firstName"
            type="java.lang.String"
            update="true"
            insert="true"
            column="FIRST_NAME"
        />

        <property
            name="lastName"
            type="java.lang.String"
            update="true"
            insert="true"
            column="LAST_NAME"
        />

        <property
            name="epin"
            type="java.lang.String"
            update="true"
            insert="true"
            column="EPIN"
        />

        <property
            name="email"
            type="java.lang.String"
            update="true"
            insert="true"
            column="EMAIL"
        />

        <property
            name="address"
            type="java.lang.String"
            update="true"
            insert="true"
            column="ADDRESS"
        />

        <property
            name="address2"
            type="java.lang.String"
            update="true"
            insert="true"
            column="ADDRESS2"
        />

        <property
            name="city"
            type="java.lang.String"
            update="true"
            insert="true"
            column="CITY"
        />

        <property
            name="state"
            type="java.lang.String"
            update="true"
            insert="true"
            column="state"
        />

        <property
            name="otherState"
            type="java.lang.String"
            update="true"
            insert="true"
            column="OTHER_STATE"
        />

        <property
            name="postalCode"
            type="java.lang.String"
            update="true"
            insert="true"
            column="POSTCODE"
        />

        <property
            name="country"
            type="java.lang.String"
            update="true"
            insert="true"
            column="COUNTRY"
        />

        <property
            name="lastUpdate"
            type="java.util.Date"
            update="true"
            insert="true"
            column="LAST_UPDATE"
        />

        <property
            name="creationDate"
            type="java.util.Date"
            update="true"
            insert="true"
            column="CREATION_DATE"
        />

        <set
            name="contacts"
            table="contacts"
            lazy="false"
            cascade="none"
            sort="unsorted"
        >

            <key
                column="username"
            >
            </key>

            <one-to-many
                  class="com.baselogic.yoursos.contact.Contact"
            />

        </set>

        <set
            name="alerts"
            table="alerts"
            lazy="false"
            cascade="none"
            sort="unsorted"
        >

            <key
                column="username"
            >
            </key>

            <one-to-many
                  class="com.baselogic.yoursos.alert.Alert"
            />

        </set>

        <!--
            To add non XDoclet property mappings, create a file named
                hibernate-properties-User.xml
            containing the additional properties and place it in your merge dir.
        -->

    </class>

</hibernate-mapping>



Contact:
Code:
<?xml version="1.0" encoding="UTF-8"?>

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

<hibernate-mapping
>
    <class
        name="com.baselogic.yoursos.contact.Contact"
        table="contacts"
        polymorphism="explicit"
    >
        <cache usage="read-write" />

        <id
            name="id"
            column="id"
            type="long"
        >
            <generator class="assigned">
              <!-- 
                  To add non XDoclet generator parameters, create a file named
                  hibernate-generator-params-Contact.xml
                  containing the additional parameters and place it in your merge dir.
              -->
            </generator>
        </id>

        <property
            name="username"
            type="java.lang.String"
            update="true"
            insert="true"
            column="username"
        />

        <property
            name="firstName"
            type="java.lang.String"
            update="true"
            insert="true"
            column="first_name"
        />

        <property
            name="middleName"
            type="java.lang.String"
            update="true"
            insert="true"
            column="middle_name"
        />

        <property
            name="lastName"
            type="java.lang.String"
            update="true"
            insert="true"
            column="last_name"
        />

        <property
            name="gender"
            type="java.lang.String"
            update="true"
            insert="true"
            column="gender"
        />

        <property
            name="dob"
            type="java.lang.String"
            update="true"
            insert="true"
            column="dob"
        />

        <property
            name="address"
            type="java.lang.String"
            update="true"
            insert="true"
            column="address"
        />

        <property
            name="address2"
            type="java.lang.String"
            update="true"
            insert="true"
            column="address2"
        />

        <property
            name="city"
            type="java.lang.String"
            update="true"
            insert="true"
            column="city"
        />

        <property
            name="state"
            type="java.lang.String"
            update="true"
            insert="true"
            column="state"
        />

        <property
            name="otherState"
            type="java.lang.String"
            update="true"
            insert="true"
            column="other_state"
        />

        <property
            name="postalCode"
            type="java.lang.String"
            update="true"
            insert="true"
            column="postal_code"
        />

        <property
            name="country"
            type="java.lang.String"
            update="true"
            insert="true"
            column="country"
        />

        <property
            name="phone1"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_1"
        />

        <property
            name="phone1Type"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_1_TYPE"
        />

        <property
            name="phone2"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_2"
        />

        <property
            name="phone2Type"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_2_TYPE"
        />

        <property
            name="phone3"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_3"
        />

        <property
            name="phone3Type"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_3_TYPE"
        />

        <property
            name="phone4"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_4"
        />

        <property
            name="phone4Type"
            type="java.lang.String"
            update="true"
            insert="true"
            column="PHONE_4_TYPE"
        />

        <property
            name="email"
            type="java.lang.String"
            update="true"
            insert="true"
            column="email"
        />

        <property
            name="icq"
            type="java.lang.String"
            update="true"
            insert="true"
            column="icq"
        />

        <property
            name="msn"
            type="java.lang.String"
            update="true"
            insert="true"
            column="msn"
        />

        <property
            name="locale"
            type="java.lang.String"
            update="true"
            insert="true"
            column="locale"
        />

        <property
            name="timezone"
            type="java.lang.String"
            update="true"
            insert="true"
            column="timezone"
        />

        <property
            name="relationship"
            type="java.lang.String"
            update="true"
            insert="true"
            column="relationship"
        />

        <property
            name="comments"
            type="java.lang.String"
            update="true"
            insert="true"
            column="comments"
        />

        <property
            name="lastUpdate"
            type="java.util.Date"
            update="true"
            insert="true"
            column="LAST_UPDATE"
        />

        <property
            name="creationDate"
            type="java.util.Date"
            update="true"
            insert="true"
            column="CREATION_DATE"
        />

        <!--
            To add non XDoclet property mappings, create a file named
                hibernate-properties-Contact.xml
            containing the additional properties and place it in your merge dir.
        -->

    </class>

</hibernate-mapping>



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

Full stack trace of any exception that occurs:
No real exception, except the object will not delete!:
Code:
09:50:18,234 DEBUG [QueryPlanCache] located HQL query plan in cache (from Contact c where c.username='mknutson')
09:50:18,234 DEBUG [TransactionSynchronizationManager] Retrieved value [org.springframework.orm.hibernate3.SessionHolder@1f4bdca] for key [org.hi
bernate.impl.SessionFactoryImpl@1aba308] bound to thread [http-0.0.0.0-8080-3]
09:50:18,234 DEBUG [QueryPlanCache] located HQL query plan in cache (from Contact c where c.username='mknutson')
09:50:18,234 DEBUG [HQLQueryPlan] find: from Contact c where c.username='mknutson'
09:50:18,234 DEBUG [QueryParameters] named parameters: {}
09:50:18,234 DEBUG [AbstractBatcher] about to open PreparedStatement (open PreparedStatements: 0, globally: 0)
09:50:18,234 DEBUG [ConnectionManager] opening JDBC connection
09:50:18,234 DEBUG [SQL] select contact0_.id as id3_, contact0_.username as username3_, contact0_.first_name as first3_3_, contact0_.middle_name
as middle4_3_, contact0_.last_name as last5_3_, contact0_.gender as gender3_, contact0_.dob as dob3_, contact0_.address as address3_, contact0_.a
ddress2 as address9_3_, contact0_.city as city3_, contact0_.state as state3_, contact0_.other_state as other12_3_, contact0_.postal_code as posta
l13_3_, contact0_.country as country3_, contact0_.PHONE_1 as PHONE15_3_, contact0_.PHONE_1_TYPE as PHONE16_3_, contact0_.PHONE_2 as PHONE17_3_, c
ontact0_.PHONE_2_TYPE as PHONE18_3_, contact0_.PHONE_3 as PHONE19_3_, contact0_.PHONE_3_TYPE as PHONE20_3_, contact0_.PHONE_4 as PHONE21_3_, cont
act0_.PHONE_4_TYPE as PHONE22_3_, contact0_.email as email3_, contact0_.icq as icq3_, contact0_.msn as msn3_, contact0_.locale as locale3_, conta
ct0_.timezone as timezone3_, contact0_.relationship as relatio28_3_, contact0_.comments as comments3_, contact0_.LAST_UPDATE as LAST30_3_, contac
t0_.CREATION_DATE as CREATION31_3_ from contacts contact0_ where contact0_.username='mknutson'
09:50:18,234 INFO  [STDOUT] Hibernate: select contact0_.id as id3_, contact0_.username as username3_, contact0_.first_name as first3_3_, contact0
_.middle_name as middle4_3_, contact0_.last_name as last5_3_, contact0_.gender as gender3_, contact0_.dob as dob3_, contact0_.address as address3
_, contact0_.address2 as address9_3_, contact0_.city as city3_, contact0_.state as state3_, contact0_.other_state as other12_3_, contact0_.postal
_code as postal13_3_, contact0_.country as country3_, contact0_.PHONE_1 as PHONE15_3_, contact0_.PHONE_1_TYPE as PHONE16_3_, contact0_.PHONE_2 as
PHONE17_3_, contact0_.PHONE_2_TYPE as PHONE18_3_, contact0_.PHONE_3 as PHONE19_3_, contact0_.PHONE_3_TYPE as PHONE20_3_, contact0_.PHONE_4 as PH
ONE21_3_, contact0_.PHONE_4_TYPE as PHONE22_3_, contact0_.email as email3_, contact0_.icq as icq3_, contact0_.msn as msn3_, contact0_.locale as l
ocale3_, contact0_.timezone as timezone3_, contact0_.relationship as relatio28_3_, contact0_.comments as comments3_, contact0_.LAST_UPDATE as LAS
T30_3_, contact0_.CREATION_DATE as CREATION31_3_ from contacts contact0_ where contact0_.username='mknutson'
09:50:18,234 DEBUG [AbstractBatcher] preparing statement
09:50:18,312 DEBUG [AbstractBatcher] about to open ResultSet (open ResultSets: 0, globally: 0)
09:50:18,468 DEBUG [Loader] processing result set
09:50:18,468 DEBUG [Loader] result set row: 0
09:50:18,468 DEBUG [LongType] returning '1' as column: id3_
09:50:18,468 DEBUG [Loader] result row: EntityKey[com.baselogic.yoursos.contact.Contact#1]
09:50:18,468 DEBUG [Loader] Initializing object from ResultSet: [com.baselogic.yoursos.contact.Contact#1]
09:50:18,468 DEBUG [AbstractEntityPersister] Hydrating entity: [com.baselogic.yoursos.contact.Contact#1]
09:50:18,468 DEBUG [StringType] returning 'mknutson' as column: username3_
09:50:18,468 DEBUG [StringType] returning 'Michelle' as column: first3_3_
09:50:18,468 DEBUG [StringType] returning 'Lee' as column: middle4_3_
09:50:18,468 DEBUG [StringType] returning 'Knutson' as column: last5_3_
09:50:18,468 DEBUG [StringType] returning 'female' as column: gender3_
09:50:18,468 DEBUG [StringType] returning '1973-08-14' as column: dob3_
09:50:18,468 DEBUG [StringType] returning '725 Florida Street' as column: address3_
09:50:18,468 DEBUG [StringType] returning '#5' as column: address9_3_
09:50:18,468 DEBUG [StringType] returning 'san francisco' as column: city3_
09:50:18,515 DEBUG [StringType] returning 'Ca' as column: state3_
09:50:18,515 DEBUG [StringType] returning '' as column: other12_3_
09:50:18,515 DEBUG [StringType] returning '94110' as column: postal13_3_
09:50:18,515 DEBUG [StringType] returning 'us' as column: country3_
09:50:18,515 DEBUG [StringType] returning '415-648-1804' as column: PHONE15_3_
09:50:18,531 DEBUG [StringType] returning 'home' as column: PHONE16_3_
09:50:18,531 DEBUG [StringType] returning '415-218-0533' as column: PHONE17_3_
09:50:18,531 DEBUG [StringType] returning 'mobile' as column: PHONE18_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE19_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE20_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE21_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE22_3_
09:50:18,531 DEBUG [StringType] returning 'base663@hotmail.com' as column: email3_
09:50:18,531 DEBUG [StringType] returning '' as column: icq3_
09:50:18,531 DEBUG [StringType] returning 'base663@hotmail.com' as column: msn3_
09:50:18,531 DEBUG [StringType] returning 'en' as column: locale3_
09:50:18,531 DEBUG [StringType] returning null as column: timezone3_
09:50:18,531 DEBUG [StringType] returning 'spouse' as column: relatio28_3_
09:50:18,531 DEBUG [StringType] returning 'My Cuttie Pie.
Love of my life!!!!' as column: comments3_
09:50:18,531 DEBUG [TimestampType] returning '2006-01-25 00:00:00' as column: LAST30_3_
09:50:18,531 DEBUG [TimestampType] returning '2006-01-23 00:00:00' as column: CREATION31_3_
09:50:18,531 DEBUG [Loader] result set row: 1
09:50:18,531 DEBUG [LongType] returning '4' as column: id3_
09:50:18,531 DEBUG [Loader] result row: EntityKey[com.baselogic.yoursos.contact.Contact#4]
09:50:18,531 DEBUG [Loader] Initializing object from ResultSet: [com.baselogic.yoursos.contact.Contact#4]
09:50:18,531 DEBUG [AbstractEntityPersister] Hydrating entity: [com.baselogic.yoursos.contact.Contact#4]
09:50:18,531 DEBUG [StringType] returning 'mknutson' as column: username3_
09:50:18,531 DEBUG [StringType] returning 'Mary' as column: first3_3_
09:50:18,531 DEBUG [StringType] returning 'Gae' as column: middle4_3_
09:50:18,531 DEBUG [StringType] returning 'Kelton' as column: last5_3_
09:50:18,531 DEBUG [StringType] returning 'female' as column: gender3_
09:50:18,531 DEBUG [StringType] returning '' as column: dob3_
09:50:18,531 DEBUG [StringType] returning '' as column: address3_
09:50:18,531 DEBUG [StringType] returning '' as column: address9_3_
09:50:18,531 DEBUG [StringType] returning '' as column: city3_
09:50:18,531 DEBUG [StringType] returning '' as column: state3_
09:50:18,531 DEBUG [StringType] returning '' as column: other12_3_
09:50:18,531 DEBUG [StringType] returning '' as column: postal13_3_
09:50:18,531 DEBUG [StringType] returning '' as column: country3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE15_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE16_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE17_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE18_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE19_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE20_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE21_3_
09:50:18,531 DEBUG [StringType] returning '' as column: PHONE22_3_
09:50:18,531 DEBUG [StringType] returning '' as column: email3_
09:50:18,531 DEBUG [StringType] returning '' as column: icq3_
09:50:18,531 DEBUG [StringType] returning '' as column: msn3_
09:50:18,531 DEBUG [StringType] returning 'en' as column: locale3_
09:50:18,531 DEBUG [StringType] returning null as column: timezone3_
09:50:18,531 DEBUG [StringType] returning 'family' as column: relatio28_3_
09:50:18,531 DEBUG [StringType] returning '' as column: comments3_
09:50:18,531 DEBUG [TimestampType] returning '2006-01-25 00:00:00' as column: LAST30_3_
09:50:18,531 DEBUG [TimestampType] returning '2006-01-25 00:00:00' as column: CREATION31_3_
09:50:18,531 DEBUG [Loader] done processing result set (2 rows)
09:50:18,531 DEBUG [AbstractBatcher] about to close ResultSet (open ResultSets: 1, globally: 1)
09:50:18,531 DEBUG [AbstractBatcher] about to close PreparedStatement (open PreparedStatements: 1, globally: 1)
09:50:18,531 DEBUG [AbstractBatcher] closing statement
09:50:18,531 DEBUG [Loader] total objects hydrated: 2
09:50:18,531 DEBUG [TwoPhaseLoad] resolving associations for [com.baselogic.yoursos.contact.Contact#1]
09:50:18,531 DEBUG [TwoPhaseLoad] adding entity to second-level cache: [com.baselogic.yoursos.contact.Contact#1]
09:50:18,531 DEBUG [ReadWriteCache] Caching: com.baselogic.yoursos.contact.Contact#1
09:50:18,531 DEBUG [EhCache] key: com.baselogic.yoursos.contact.Contact#1
09:50:18,531 DEBUG [MemoryStore] com.baselogic.yoursos.contact.ContactCache: MemoryStore hit for com.baselogic.yoursos.contact.Contact#1
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#1 now: 1138297818531
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#1 Creation Time: 1138297808265 Next To Last Access Time: 0
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#1 mostRecentTime: 1138297808265
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#1 Age to Idle: 120000 Age Idled: 10266
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact: Is element with key com.baselogic.yoursos.contact.Contact#1 expired?: false
09:50:18,531 DEBUG [ReadWriteCache] Item was already cached: com.baselogic.yoursos.contact.Contact#1
09:50:18,531 DEBUG [TwoPhaseLoad] done materializing entity [com.baselogic.yoursos.contact.Contact#1]
09:50:18,531 DEBUG [TwoPhaseLoad] resolving associations for [com.baselogic.yoursos.contact.Contact#4]
09:50:18,531 DEBUG [TwoPhaseLoad] adding entity to second-level cache: [com.baselogic.yoursos.contact.Contact#4]
09:50:18,531 DEBUG [ReadWriteCache] Caching: com.baselogic.yoursos.contact.Contact#4
09:50:18,531 DEBUG [EhCache] key: com.baselogic.yoursos.contact.Contact#4
09:50:18,531 DEBUG [MemoryStore] com.baselogic.yoursos.contact.ContactCache: MemoryStore hit for com.baselogic.yoursos.contact.Contact#4
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#4 now: 1138297818531
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#4 Creation Time: 1138297808265 Next To Last Access Time: 1138297813015
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#4 mostRecentTime: 1138297813015
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact#4 Age to Idle: 120000 Age Idled: 5516
09:50:18,531 DEBUG [Cache] com.baselogic.yoursos.contact.Contact: Is element with key com.baselogic.yoursos.contact.Contact#4 expired?: false
09:50:18,531 DEBUG [ReadWriteCache] Item was already cached: com.baselogic.yoursos.contact.Contact#4
09:50:18,531 DEBUG [TwoPhaseLoad] done materializing entity [com.baselogic.yoursos.contact.Contact#4]
09:50:18,531 DEBUG [StatefulPersistenceContext] initializing non-lazy collections
09:50:18,531 DEBUG [JDBCContext] after autocommit
09:50:18,531 DEBUG [ConnectionManager] transaction completed on session with on_close connection release mode; be sure to close the session to re
lease JDBC resources!
09:50:18,531 DEBUG [SessionImpl] after transaction completion
09:50:18,531 DEBUG [HibernateTemplate] Not closing pre-bound Hibernate Session after HibernateTemplate
09:50:18,531 DEBUG [TransactionSynchronizationManager] Retrieved value [org.springframework.orm.hibernate3.SessionHolder@1f4bdca] for key [org.hi
bernate.impl.SessionFactoryImpl@1aba308] bound to thread [http-0.0.0.0-8080-3]
09:50:18,531 DEBUG [OpenSessionInViewInterceptor] Flushing single Hibernate Session in OpenSessionInViewInterceptor
09:50:18,531 DEBUG [OpenSessionInViewInterceptor] Eagerly flushing Hibernate session
09:50:18,531 DEBUG [AbstractFlushingEventListener] flushing session
09:50:18,531 DEBUG [AbstractFlushingEventListener] processing flush-time cascades
09:50:18,531 DEBUG [AbstractFlushingEventListener] dirty checking collections
09:50:18,531 DEBUG [AbstractFlushingEventListener] Flushing entities and processing referenced collections
09:50:18,531 DEBUG [AbstractFlushingEventListener] Processing unreferenced collections
09:50:18,546 DEBUG [AbstractFlushingEventListener] Scheduling collection removes/(re)creates/updates
09:50:18,546 DEBUG [AbstractFlushingEventListener] Flushed: 0 insertions, 0 updates, 0 deletions to 2 objects
09:50:18,546 DEBUG [AbstractFlushingEventListener] Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
09:50:18,546 DEBUG [Printer] listing entities:
09:50:18,546 DEBUG [Printer] com.baselogic.yoursos.contact.Contact{comments=, otherState=, address=, phone3=, msn=, firstName=Mary, id=4, locale=
en, postalCode=, address2=, phone4=, phone4Type=, phone2Type=, username=mknutson, phone3Type=, middleName=Gae, city=, icq=, gender=female, phone2
=, creationDate=2006-01-25 00:00:00, relationship=family, lastName=Kelton, phone1Type=, country=, timezone=null, dob=, state=, email=, lastUpdate
=2006-01-25 00:00:00, phone1=}
09:50:18,546 DEBUG [Printer] com.baselogic.yoursos.contact.Contact{comments=My Cuttie Pie.
Love of my life!!!!, otherState=, address=725 Florida Street, phone3=, msn=base663@hotmail.com, firstName=Michelle, id=1, locale=en, postalCode=9
4110, address2=#5, phone4=, phone4Type=, phone2Type=mobile, username=mknutson, phone3Type=, middleName=Lee, city=san francisco, icq=, gender=fema
le, phone2=415-218-0533, creationDate=2006-01-23 00:00:00, relationship=spouse, lastName=Knutson, phone1Type=home, country=us, timezone=null, dob
=1973-08-14, state=Ca, email=base663@hotmail.com, lastUpdate=2006-01-25 00:00:00, phone1=415-648-1804}
09:50:18,546 DEBUG [AbstractFlushingEventListener] executing flush
09:50:18,546 DEBUG [AbstractFlushingEventListener] post flush
09:50:18,546 DEBUG [DispatcherServlet] Rendering view [org.springframework.web.servlet.view.JstlView: name 'user/contact/index'; URL [/WEB-INF/vi
ews/user/contact/index.jsp]] in DispatcherServlet with name 'user'
09:50:18,546 DEBUG [JstlView] Rendering view with name 'user/contact/index' with model {contacts=[com.baselogic.yoursos.contact.Contact@84c1f9[id
=1,username=mknutson,firstName=Michelle,middleName=Lee,lastName=Knutson,gender=female,dob=1973-08-14,address=725 Florida Street,address2=#5,city=
san francisco,state=Ca,otherState=,postalCode=94110,country=us,phone1=415-648-1804,phone1Type=home,phone2=415-218-0533,phone2Type=mobile,phone3=,
phone3Type=,phone4=,phone4Type=,email=base663@hotmail.com,icq=,msn=base663@hotmail.com,locale=en,timezone=<null>,relationship=spouse,comments=My
Cuttie Pie.
Love of my life!!!!,lastUpdate=2006-01-25 00:00:00.0,creationDate=2006-01-23 00:00:00.0,creationDateString=,lastUpdateString=], com.baselogic.you
rsos.contact.Contact@1dae27f[id=4,username=mknutson,firstName=Mary,middleName=Gae,lastName=Kelton,gender=female,dob=,address=,address2=,city=,sta
te=,otherState=,postalCode=,country=,phone1=,phone1Type=,phone2=,phone2Type=,phone3=,phone3Type=,phone4=,phone4Type=,email=,icq=,msn=,locale=en,t
imezone=<null>,relationship=family,comments=,lastUpdate=2006-01-25 00:00:00.0,creationDate=2006-01-25 00:00:00.0,creationDateString=,lastUpdateSt
ring=]]} and static attributes {}
09:50:18,546 DEBUG [JstlView] Added model object 'contacts' of type [java.util.ArrayList] to request in InternalResourceView 'user/contact/index'


Name and version of the database you are using: MySql 4.0.24

The generated SQL (show_sql=true):
above on the exception section...

Debug level Hibernate log excerpt: Not sure about this, and/or how to set this in Spring...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 26, 2006 1:56 pm 
Newbie

Joined: Mon Jun 20, 2005 12:40 pm
Posts: 5
Forgot to add the Spring method I used:

public class UserManagerImpl extends HibernateDaoSupport implements UserManager {

.....
public void deleteContact(long contactId) {
Contact contact = new Contact();
contact.setId(contactId);
getHibernateTemplate().delete(contact);
}

.....
}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.