Hibernate-very strange problem, help please

Hi, i got such a strange problem that im sure you ll think im doin crazy talk :) , i dont see why this would happen at all, i have a class called "Package", mapped to a table "package". whenever i do a query on this table using hibernate, even the simplest "find all" kinda of query, hibernate does update on the table b4 doin the query! even more weird, it does the update when the first query on this table happens, it deletes all values of a column (yes only this column); then if i do the same query again, no update at all. however if now i mannuall add those missing values, it does the update again and deletes them! sry its confusing, heres my code and more of wat i done:
The mapping Package.hbm.xml
<hibernate-mapping package="tuition.bo">
<class name="Package" table="package">
<id name="id" column="study_package_id" type="long">
<generator class="sequence"/>
</id>
<property name="name" column="name" not-null="true"/>
<property name="satTiming" column="sat_timing" not-null="false"/>
<property name="satSubjects" column="sat_subjects" not-null="false"/>
<property name="sunTiming" column="sun_timing" not-null="false"/>
<property name="sunSubjects" column="sun_subjects" not-null="false"/>
<set name="classes" inverse="true" cascade="delete-orphan" lazy="true">
<key column="package_id"/>
<one-to-many class="Class"/>
</set>
</class>
</hibernate-mapping>
For example initialy i populated database using hibernate, like this:
package_id, name, sat_timing, sat_subjects, sun_timing, sun_subjects
1 no.1 9-12 business 9-12 law
2 no.2 9-11 business 9-11 law
Then after i populated this database, i did this query:
<b>List res=getHibernateTemplate().find("FROM Package");</b>
and you can see the log file as such: (excerpt)
16:23:06,687 INFO TransactionFactoryFactory:31 - Using default transaction strategy (direct JDBC transactions)
16:23:06,703 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
16:23:09,968 DEBUG JDBCTransaction:46 - begin
16:23:09,968 DEBUG JDBCTransaction:50 - current autocommit status: true
16:23:09,968 DEBUG JDBCTransaction:52 - disabling autocommit
<b>16:23:10,640 DEBUG SQL:324 - select</b> studypacka0_.study_package_id as study1_, studypacka0_.name as name12_, studypacka0_.description as descript3_12_, ....... from _3AT_package studypacka0_
Hibernate: select studypacka0_.study_package_id as study1_, studypacka0_.name as name12_, studypacka0_.description as descript3_12_, studypacka0_.day as day12_, studypacka0_.sat_timing as sat5_12_, studypacka0_.sat_subjects as sat6_12_, .......
16:23:10,734 DEBUG JDBCTransaction:83 - commit
<b>16:23:10,796 DEBUG SQL:324 - update</b> _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
Hibernate: update _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
<b>16:23:10,812 DEBUG SQL:324 - update </b>_3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
Hibernate: update _3AT_package set name=?, description=?, day=?, sat_timing=?, sat_subjects=?, sat_hours=?, sun_timing=?, sun_subjects=?, sun_hours=?, unit_price=?, years_id=?, group_id=? where study_package_id=?
<b>16:23:10,812 DEBUG SQL:324 - update</b> _3AT_package set name=?, description=?,
16:23:10,953 DEBUG JDBCTransaction:173 - re-enabling autocommit
16:23:10,953 DEBUG JDBCTransaction:96 - committed JDBC Connection
as you can see, it does update and changed table field values to this:
package_id, name, sat_timing, sat_subjects, sun_timing, sun_subjects
1 no.1 business law
2 no.2 business law
---------- all tiimings are gone. and now if i re-do the same query, there are NO UPDATE operations....howver if i add some values to sat_timing, sun_timing, and re-do the query, very surprisingly, i saw those update operations which delete all timing values again!
im totally lost... i havent changed any config, this doenst happen to my other classes at all but just this one.... any ideas please! even some thought of what may caused this would be great help! thank you!

well i got the setters wrong.... being so stupid i am... sry for creating such a long and massy thread.

Similar Messages

  • Very strange problem, help needed please???

    I had a piece of software that acted as a virtual disk when I plugged in my 60GB Video Ipod but when I opened iTunes it appeared as if my iPod was connected with a different name and over 20 GB's used (which is right) but nothing could be seen. After disabling the virtual drive, rebooting and trying again I still had the same problem. I have all my library on my PC so it didn't bother me to try a system restore, I did the system restore but when it was finished it said that my iPod was restored but the wrong name was there and I'm missing 30 GB's. I'm happy to completely wipe it and start again but I've tried the restore twice now and I get the same problem, the capacity has halved??

    hiya!
    I did the system restore but when it was finished it said that my iPod was restored but the wrong name was there and I'm missing 30 GB's
    hmmmm. we'd probably better check on this possibility:
    Windows confuses iPod with network drive and may keep iPod from mounting or songs may seem to disappear
    love, b

  • Very Strange! Help Please!

    I have a 30g 3rd Gen iPod. I have been having all kinds of problems recenty, since the iTunes 5.0 update, which didn't stay around for long, so I am guessing Apple knew they screwed up. Anyway, I have a G5 here at work running Panther, and I can't eject my iPod or see it on the desktop (iTunes see's it though). At home I have a dual 1G running Tiger and I have no problems with it ejecting or appearing on the desktop.
    Also, I have resorted to wiping the disk and restoring several times as when I could get it to eject, it would continue to restart and I could here a clicking sound. This stops when I put it in disk mode, but it still won't mount at work, but at home everything will be okay.
    Please help, I don't think it is my iPod, something more to do with the G5/software.
    Thank you in advance.
    -Jim

    Hi, thanks for your quick reply. I can imagine my questions may seem silly (or worse) but please bear with me. I'm a little new to this. I have now both uninstalled and re-installed itunes and ipod. The ipod is still not appearing in itunes. I have tried resetting the ipod but pressing select and menu (after toggling the hold) does not make the apple logo appear and does not put it into disc mode....
    And my base question is do you, or others, have any idea why this happened in the first place? Where did the podcast appear from and where did all the music go?

  • Very Very Strange Problem - Help

    I own a MacBook Pro 17 inch. I connect it to a 30" Cinema Display. It has been working great for the past 6 months. Few days ago, I was doing a presentation using a flat screen which went fine. A day later, When I tried to connect the MacBook pro back to my cinema display, it just did not work. The display is not detected at all. I first thought maybe the connector was not damaged but the dosplay worked fine with another computer. I then though maybe the diplay out in my computer was damaged, but my MacBook works ok wiht other screens and projectors. The strange thing is that there is absoultely no communicatio between this specifc Macbook pro and this 30" inch Cinema display. Very strnage. Appreciate your help.

    Try resetting PRAM…
    http://docs.info.apple.com/article.html?artnum=2238

  • I have very strange problem with Iphone 3gs. Whenever it gets little hot or exposed to 30 degree temperature it losses signals (No service). Whenever it is cooled down the service is back. Please help!

    I have very strange problem with iphone 3gs. Whenever it gets little hot or exposed to 30 degree or above temperature it losses signals (No service). Whenever it is cooled down the service is back. Whenever I am using Skype or playing game for a while it losses carrier signals and wifi. When it is cooled down afer shutting down the carrier signals and wifi are back. It is for sure problem is with heating, but 30 degree tempeature in Oman is normal and some time it goes upto 50 degrees. I have noticed this has started after I started using substandard charger as I lost my original charger of the phone. Please help!! Thanx.

    The specifications define an operating range up to 35 degrees.

  • I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    I upgraded to mountain lion a week ago and now on startup of my macbook pro, microsoft excel and word start up automatically and then crash? very strange can anyone please help? I have checked the login items under users and groups and there is nothing.

    Are you using the Office for Mac 2011 version, as you need to do?  The Office for Mac 2004 is Not at all compatible with Mountain Lion, and the 2008 version has been noted to have some problems running with ML.
    Hope this helps

  • A very Strange Problem!!!help me!!

    i encounter a very strange problem, in EJB
    i write two EJB, one Stateless Session called A, and one Entity called B.
    i want to call B's findByPrimaryKey method in one A's Business, but failed!!!
    but when i remove the statement that performed the findByPrimaryKey method to A's setSessionContext method, It's Success!!!!!
    what the Problem, i am useing the Borland 's AppServer.
    who can help

    how u create the entity bean B from A?
    using proper lookup?
    can u try by write a small function inside bean A
    that contain proper lookup to Bean B...
    then try to call finbyPrimaryKey...
    now tell me is it working?
    or else can u give code or clear idea..
    if i can help u ,,,, sure i will
    do mail me
    [email protected]

  • Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings!

    Safari Crash - Problem with doodle (planer) app  -  doodle web links cause safari to crash with a very strange message "Error - Please make sure Safari is not used in Private Modus" (translated from german) No Privat Modus buttom in ios 7 safari settings! Works fine with an older Safari Version. Web link, call doodle app.  You could see the website in the backround working but safari crashes after clicking on the error window.   Any suggestions?

    Turn off Private Browsing.
    Tap "Private" on Safari Screen to disable Private Browsing. When top of screen is white, Private Browsing is off.

  • ALV Grid - Very Strange Problem

    I am facing a very strange problem in ALV Grid. Our’s is a ECC5 system on SAP_APPL SAPKH50011 and SAP_BASIS SAPKB64016.
    I have implemented the ALV grid in a screen using classes. This grid by default appears in display mode however it can be switched to change mode and back to display mode using a custom button on the ALV toolbar. When the user clicks the change button the grid appears in editable mode. During the back and forth switching of the ALV between Change/Display modes the ALV grid control is not destroyed however the toolbar, fieldcatalog and ALV contents are refreshed.
    The data which is entered in an editable cell is validated using the data_changed event which has been implemented locally. If the validation fails an error message is raised using the message statement which is being issued correctly. Now when I correct the data and then click on another cell in the ALV grid the program is being aborted. Any clue why this is happening??

    Please check this code
    In the PBO of the screen set the field catalog and layout , i think this will help not to refresh the field catalog every time swtich between display and change mode
        set titlebar sy-dynnr with p_netwk.
        call method g_grid->set_frontend_fieldcatalog
          exporting
            it_fieldcatalog = gt_fieldcat[].
        call method g_grid->set_frontend_layout
          exporting
            is_layout = gs_layout.
        call method g_grid->refresh_table_display.
    2. Regarding program abort, please paste the first page of system dump

  • Very strange problem facing

    Hello All,
    I am facing very strange problem from last a week.
    I have made flex application using Flex3 and AMFphp.
    I was running very fine but just from before 7 days, my all images will not displayed in Mozilla Firefox browser.
    but it is running fine in Internet Explorer browser.
    any idea? I have tried to know what happen but i failed.
    Please help me to identify what's going wrong.
    Thank you.

    Have you tried emptying your cache?
    Dany

  • Very strange problem / Perpetual command key

    I've been using OS X since its inception, and have never had this problem before.
    Starting yesterday, I noticed a very strange problem that was happening randomly. When I clicked on an app in the dock, it would just reveal the app to me in Finder rather than opening it. Other problems including multiple selections when single-clicking on items with my mouse, and not being able to type. After some fidgeting, I realized that my iMac is acting like I'm always holding down the command (apple) key. If I have a window open, for instance, pressing the H (just by itself) key will hide the window. Pressing Q will quit whatever is active.
    I shut down, restarted, plugged in a different keyboard, used a different mouse, unplugged all my periphs, deleted all haxies and their attached files, and it still happened. I unplugged my 2nd monitor, and that seemed to fix it after another restart... but then I plugged in my 2nd monitor again and restarted, and now everything is fine. It's just happening randomly. I'm afraid to restart my Mac now. This is really bizarre!!!
    Someone please help!

    If it's any help, it started right after the following:
    When booted to Vista one night, I noticed ghosting on my nice new iMac screen which kinda irked me. I could see the menubar with the Spotlight menu icon burned into the screen.
    So when I got back into OS X I looked for a menubar hider. I tried Menushade and Menufela, both of which are quite old... probably before any mention of an Intel switch had ever occurred.
    But now I had a problem... no clock. So I went ahead and downloaded Yahoo! Widget Engine (aka Konfabulator). I know, I know... what a crazy workaround just to hide the menubar (this is why it would be GREAT if Apple would build in its own menubar hider option!)
    Anyway, this stuff started happening, so I deleted all of those apps (Menufela, Menushade, and Yahoo Widget Engine) with AppZapper (a great little app).
    Ugh... this is what you get for experimenting with homegrown apps, I guess.
    Anyway, hope that helps.

  • Nokia 3250:A very strange problem...

    hi..i'm facing a very strange problem in my handset 3250.. i've upgraded its os but still there is problem: http://discussions.europe.nokia.com/discussions/bo​ard/message?board.id=smartphones&;message.id=9102#M9102 any idea about such type of problem.....

    MR.,
    what is firmware?? How can i have its latest edition??
    Can you help me because i too have the same problem:
    Problem 1:
    1-I install any software (e.g:snake game) through Application manager (Pc Suit) in memory card.
    2-I launch that software (snake game) just after installation it works properly.
    3-Now i switch-off the hand set and than switch-on it.
    4-I try to launch that software (snake game) again but it doesn't response.
    Problem 2:
    1:There is a image in my Memory card.
    2: I set that image as a wallpaper.
    3-Now i switch-off the hand set and than switch-on it.
    4-Wallpaper reset to default one.
    Problem 3:
    1-I install a theme through Application manager (Pc Suit) in memory card.
    2: I apply that theme in my hand set.
    3-Now i switch-off the hand set and than switch-on it.
    4- Now theme reset to default one.

  • A very strange problem in netbeans

    i debug a project in netbeans,a a very strange problem happens.
    a member variable was different between wtk20 and wtk22.and the variable was changed many places so it's hard to trace!
    but there hasn't the problem when i debug project in jbuilderx!

    My problem is, even I've written the SQL in the correct syntax, in my java code, it just look like this
    adc.SQL("insert into test(subject, content) values('" + sf.filter(subject.getText()) +"'"
                                  + "," + "'"
                                  + sf.filter(board.getText()) + "')" );
                                  subject.setText("");
                                  board.setText("");
    where subject is a textfield and board is a JTextArea and sf is a string filter which use regular expression, I basically want to insert the string in these component into the database, Many strings work, but client for updates can't be inserted.
    With my best,
    Zike Huang

  • MacBookAir is frozen.  Won't turn off.  Getting VERY warm.  Help, please!

    MacBookAir is frozen.  Won't turn off.  Getting VERY warm.  Help, please!

    Hi Katharine,
    Hold down the power button until the screen turns black.
    Then wait about a minute then press the power button once to turn it back on.
    If you can't shut it down, if you're in the Walnut Creek I think you are, there's an Apple Store on South Main Street.
    You can make a reservation at their Genius Bar in advance >  Apple Retail Store - Genius Bar

  • Very strange problem w/ iTunes PC

    Well, I have a very strange problem - I added some music to my iTunes and when I was changing the informations and cover, my iTunes crashed. When I restarted the program, the album is missing and when I found it on my hard drive, I am not able to import it back to the iTunes. This happens with both Import from the menu and the classic Drag/Drop method. So what to do? Is there any way to get it back?
    EDIT: Tried to move the files to another folder. Didn't work though.

    I just found the problem lies with iTunes 7.0.
    I ran the sames songs (ones with problem) into iTunes 4.7.1, with MSN messenger (same version)'s song display selected.....the song title/artist displayed and it did not get kicked out!!!!
    If it's not my 80gig iPod.......I would not have gotten iTunes 7.0!!!!!!!

Maybe you are looking for

  • KT4AV Big problems Please Help!!!

    I am having a few problems. I have just built a new computer here are the specs: AMD Palimino 1.9GHZ MSI KT4AV Winfast 128DDR 8X AGP 80GB Seagate Harddrive 128SDRAM I have tried booting this up and it boots up then after about 10 secs it just turns o

  • Sleep Problems after 10.6.5 Upgrade

    After upgrading to 10.6.5 my iMac wont sleep consistantly when using the Alt, Apple, Eject shortcut. Sometimes it sleeps just fine, sometimes it will sleep for 5 seconds and then start up again. Removing all attached devices (except for keyboard and

  • My iPad 2 doesn't show up in iTunes.

    I want my iPad 2 to sync with iTunes over my Wi-Fi connection, but my iPad doesn't show up in iTunes. I tried the Apple troubleshooter page, but when I try to install the Mobile Device Support driver, my Windows says the driver isn't made for my devi

  • Final Cut Pro 10.1.1 Crash when rendering starts

    Process:         Final Cut Pro [527] Path:            /Users/USER/Desktop/Final Cut Pro.app/Contents/MacOS/Final Cut Pro Identifier:      com.apple.FinalCut Version:         10.1.1 (240682) Build Info:      ProEditor-24068002033000000~1 Code Type:   

  • Java.text.DecimalFormat is parsing '22.3.6' !

    I'm using DecimalFormat to mask a data entry field. When I enter something like 22.3.6, it parses! String docString = "22.3.6"; NumberFormat nFormat = new DecimalFormat(); float value = nFormat.parse(docString).floatValue(); System.err.println("value