Well, I have used Hibernate on the iSeries and am a Synon/2E expert, but I
have never had occasion to use Hibernate at a Synon site. I will look at the
manual referenced at http://synon2hbm.sourceforge.net/synon2hbmWebsite/ and
see if I can help you.

As for using Field Descriptions in place of the six character field names,
this ought to be possible because the Descriptions are generated from the
Field Names in the Model which are unique: however, you would probably have
to modify the Hibernate generator to look at the 'LABEL ON' statements in
the 2E-generated SQL Source. Naturally, if you are reverse-engineering the
RPG Code also, you'd have to modify the generated SQL Prepared Statements.

Reverse engineering Synon Applications to Java is not for the faint
hearted - good luck!

Regards

Chris Jewell
Korasoft Inc.

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx
[mailto:java400-l-bounces@xxxxxxxxxxxx]On Behalf Of Raj Prathinidhi
Sent: Tuesday, August 28, 2007 8:51 AM
To: java400-l@xxxxxxxxxxxx
Subject: Using Hibernate code generator with Synon model


I am using Hibernate Eclipse plugin to reverse engineer tables/files, in
Synon model, to Java code. However, the code generator, as expected , is
using the obscure synon field names to generate member variable names
(and their getter/setter methods). Is there a way to make Hibernate look
at field descriptions instead?

I found references to synon2hbm on Hibernate site, but couldn't find
Eclipse plug-in. Can somebody who has used Hibernate with Synon model
give some pointers on how they generated POJOs from Synon using
Hibernate code generator? Let me know if you need more details. Thanks.

Raj



--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.