[hibernate-dev] HBM migration suggestions
Max Rydahl Andersen
manderse at redhat.com
Mon Oct 10 11:36:01 EDT 2016
On 10 Oct 2016, at 15:24, Sanne Grinovero wrote:
> I remember needing something like that and did it by having the legacy
> app create the schema in the RDBMs, then use reverse engineering to
> pojos. This was during the "Seam 2 era" so quite some time ago.. not
> sure how tools evolved since then.
That was doing it wrong then ;)
hibernate tools have since day one been able to read any hibernate
generate another config from it.
Thus generating to the db first would be unnecessary.
The tools haven't moved much since then though :)
> You'll need some manual tuning during both steps of course, but since
> I could tune & extend both the naming strategies (via code extensions)
> and the template files we got a quite complex application (600+
> entities) converted in a couple of days. AFAIR my best learner lesson
> was to be ready to repeat it all (script it) multiple times, to prefer
> tune the templates and naming strategies iteratively over fixing
> things by hand.
> On 10 October 2016 at 12:58, Max Rydahl Andersen <manderse at redhat.com>
>> hibernate tools can do it for the basic cases - but it haven't been
>> updated in a long while, but you can customise the templates if you
>>> Hi guys,
>>> We have 200-ish hbm files we would like to convert to annotated
>>> classes. Is there any tool you guys recommend to tackle such a
>>> Thanks in advance for your time,
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
More information about the hibernate-dev