facebook

Hibernate and lazy="false"

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #258648 Reply

    Hi!
    I generate the hbm files from database succesfuly but alway when i do that i must
    insert manualy laze=”false” on each hbm file as properties for the class tag .
    is any way to do this with wizard when i generate the hbm files ?
    (i use MyEclipse version 4.1.1 with Eclipse 3.1.2 and win XP )

    Thanks in advance!

    #258676 Reply

    Riyad Kalla
    Member

    I don’t believe this was supported in 4.1.1, you can try a parallel install of Eclipse 3.2 and MyEclipse 5.0 into new directories and see if the functionality you need to detailed enough in the new wizards in the 5.0 release.

    #258739 Reply

    the same happend with MyEclipse5.0 and Eclipse 3.2
    it doesnot give to me the oportunity tou add my global class
    tag propertie.

    #258800 Reply

    Riyad Kalla
    Member

    I’m sorry, I checked with our development team and there currently isn’t a way to set this during the generation phase, I’m sorry for the confusion on my part about this feature.

    #258889 Reply

    Brian Fernandes
    Moderator

    gmaravel,

    You can do this if you modify the templates used for generation. More instructions on how to modify the templates can be found in the Hibernate Quickstart, section 5.5.
    You can get to the hibernate guide from withing MyEclipse here: Help > Help Contents > MyEclipse Learning Center > Spring/Hibernate Development > Getting Started > Hibernate Development.

    You will most likely need to modify the persistentclass.hbm.vm file.

    Hope this helps,
    Brian.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Hibernate and lazy="false"

You must be logged in to post in the forum log in