Hibernate problem

Discussion in 'Java' started by javafreak, Feb 16, 2006.

  1. javafreak

    javafreak Guest

    Guys,

    I am having a problem that all the properties of an object as specified
    in the .hbm.xml file is not persisted in the database.

    Say an Object A has attributes a1,a2,a3 Hibernate generates hbm files
    with these 3 properites but persists only a1 and a2.

    I am using Spring, Hibernate 3.1 and MySQL 5.0

    any idea why this is happening

    thanks
     
    javafreak, Feb 16, 2006
    #1
    1. Advertising

  2. >Say an Object A has attributes a1,a2,a3 Hibernate generates hbm files
    >with these 3 properites but persists only a1 and a2.


    do you have getter and setters for attribute a3?

    cu
    Dirk
     
    Dirk Michaelsen, Feb 16, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ilias Lazaridis
    Replies:
    0
    Views:
    1,724
    Ilias Lazaridis
    Dec 27, 2004
  2. Replies:
    0
    Views:
    3,726
  3. jstorta
    Replies:
    1
    Views:
    11,772
  4. Eleanna Skouta
    Replies:
    2
    Views:
    8,438
    Arne Vajhøj
    Dec 9, 2008
  5. Amit Jain
    Replies:
    7
    Views:
    3,304
    Amit Jain
    Apr 27, 2009
Loading...

Share This Page