- This topic has 10 replies, 7 voices, and was last updated 16 years, 6 months ago by David Foote.
-
AuthorPosts
-
Frank WeismantelMemberHello,
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
Haris PecoMemberfrweisma,
Currently MyEclipse doesn’t support creating jdk5 syntax for POJO.I hope that we will add this in future releases.
Regards,
Frank WeismantelMember@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.
Brian FernandesModeratorWe 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.
Frank WeismantelMemberi 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
Brian FernandesModeratorIf you could post the new template to this thread, we’d be happy to have it.
Thank you.
lindholm42MemberI really want the jdk5 option enabled.
Marshall JonesMemberCan 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
Brian FernandesModeratorWe 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.
angi0003MemberThis message has not been recovered.
David FooteMemberHas this capability been added for version 6.5?
-
AuthorPosts