Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: How does really work bean initialization???

  1. #21
    Join Date
    Aug 2006
    Location
    Now Germany, previously Ukraine
    Posts
    1,546

    Default

    Quote Originally Posted by Sucheta24 View Post
    Hey,

    See, I want Map to be loaded with values from database only when dealersite (boolean variable) is false else not.
    Is there any way to do it? (will the current code do that? )

    Thanks,
    Sucheta.
    No, if you want to load some property from DB selectively you shoukd not map this property at all and then load it manually. It looks as if your code has other problems as well, but I'm not expert in the Hibernate annotations (and here is not Hibernate forum) so I'm not sure if they really exist and would not discuss them. Try to post your question in some forum devoted to Hibernate (or at least into the Data Access forum on this site) then you may found better answer.

    Regards,
    Oleksandr

  2. #22
    Join Date
    Aug 2007
    Posts
    8

    Default

    Hey,

    Ok thanks for your interest and advice. I will post in Data Access forum.

    Regards,
    Sucheta.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •