facebook

[Closed] Problem with hibernate templates

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

    Hello,

    when i do the reverse engineering for a database table PERSON,
    the find methods in the DAO classes uses List and not List<Person>
    as return values.

    I have lookup the templates and found out that for the generation
    for List<T> the template variable $jdk5 is used. My project use the
    settings for jdk 5 compilation.

    Why does the reverse engineering tools set not the template varaiable

    I am using the current release of myeclipseide

    i hope somebody can help

    #262796 Reply

    Haris Peco
    Member

    frweisma,

    Currently MyEclipse doesn’t support creating jdk5 syntax for POJO.I hope that we will add this in future releases.

    Regards,

    #262831 Reply

    @support-snpe wrote:

    frweisma,

    Currently MyEclipse doesn’t support creating jdk5 syntax for POJO.I hope that we will add this in future releases.

    Regards,

    But it looks like you integrated the hibernate reverse engineering console.
    And this already supports the jdk5 syntax. Also when i read the other
    messages here in the forum, it was working in the past.

    I have take a look at the tool and there is one property in the configuration
    file to set the $jdk5 to true or false. On default the property is set to false.

    #262833 Reply

    Brian Fernandes
    Moderator

    We have integrated with Hibernate Tools from JBoss, but for stability reasons we have decided to explicitly turn JDK 5 support off, because of which overriding this variable in the velocity templates will not work. If you you still wish to see JDK 5 code, you may remove the conditional statements surrounding it in the templates and delete the portions of the templates which generate Java 1.4 code.

    Also when i read the other messages here in the forum, it was working in the past.

    We do support JDK 5 for the HibernateSessionFactory class that can be created through a wizard or during capability addition, however, JDK 5 support was never present for POJOs and DAOs generated during the RE process.

    I have noted your request, we will review our decision to support (or not) JDK 5 in the next release as request for it are slowly increasing; an option will be added to the UI to enable JDK5 generation if we decide to support it going forward.

    Sorry for the inconvenience caused & thank you for asking.

    #263141 Reply

    i was doing a little changing in the template of the DAO generating and it now works
    for me. If you want i can send the template to you

    #263179 Reply

    Brian Fernandes
    Moderator

    If you could post the new template to this thread, we’d be happy to have it.

    Thank you.

    #269330 Reply

    lindholm42
    Member

    I really want the jdk5 option enabled.

    #271815 Reply

    Can anyone tell me if there has been any work on enabling jdk5.0 code generation option yet? It has been quite some time and we have not seen that support added to the DAO and POJO Generation yet. Any information would be greatly appreciated.

    Thanks,
    Marshall

    #271832 Reply

    Brian Fernandes
    Moderator

    We have gone some way towards enabling Java 5 generation for the RE process. I will try to prioritize this for the 6.0GA release, failing which it will definitely make it to the 6.1 release.

    Sorry for the inconvenience caused.

    #276041 Reply

    angi0003
    Member

    This message has not been recovered.

    #287122 Reply

    David Foote
    Member

    Has this capability been added for version 6.5?

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: [Closed] Problem with hibernate templates

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