-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: generating from UML
PostPosted: Wed Nov 03, 2004 10:07 am 
Regular
Regular

Joined: Mon Jun 14, 2004 1:42 pm
Posts: 80
Location: Brazil
I'm getting some pain on this step: I can't find a eficient way to generate the HBM and classes of my project.
I have an UML Argo model.
1. Trying Middlegen: It don't read my model,so I have to remodel all again. Busted.
2. Trying AndroMDA: it don't read argo. Version 3 is a big truck: My team will have to learn Maven and all AndroMDA complex, VERY complex configuration, that generates all my application. But I just want to generate HBM and plain classes. So , it was my best choice but, I can't use it! busted. After all I realized that AndroMDA may be just an excuse to sell Poseidon and Magic Draw copies. I can't accept an open source project that needs a comercial tool to work.
3. class2HBM is deprecated. If it works I could generate HBM from source that I could generate from Argo.
4. Hibernate Synchronizer: The BEST tool ever, poor mentioned here and in the documentation. It's a well focused tool , open source, extensible, BUT it is intended for Database reverse eng. The best part, you don't need to learn thousand of pages of documentation like Middlegen, and a week to figure out those ant scripts that I hate so much.
But I loose my UML capabilities of inheritance... busted.

Any other option ? I just want to automate my hbm generation from XMI ? nobody does that ?! If there is no such a tool I will make it.

Thanks

_________________
Alexandre Torres
--------------------


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 10:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
AndroMDA is the only one that i know of that claims to process .xmi

Do you know why the .xmi from argo does not work with that tool ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 12:44 pm 
Regular
Regular

Joined: Mon Jun 14, 2004 1:42 pm
Posts: 80
Location: Brazil
I'm trying to discover :)
Argo has stereotypes and tag values what makes the base of andromda.
Argo export XMI. And Poseidon was made based on Argo. It reads argo files well.

_________________
Alexandre Torres
--------------------


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 1:29 pm 
Regular
Regular

Joined: Mon Jun 14, 2004 1:42 pm
Posts: 80
Location: Brazil
The only generator tool that is evolving in v 3.0 is the hbm2class, hbm2ddl?
Any other tools ?
What about a ecore to HBM tool on eclipse. I'm in the mood of making one.

_________________
Alexandre Torres
--------------------


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 1:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
So, AndromMDA DOES work with Argo ?

hbm2class does not exist.

hbm2ddl is still there.

hbm2java will continue to be supported

what is ecore ? (i've heard the name, but it does not ring a bell)


I'm currently working on a Hibernate plugin for eclipse which is planned
to add good reverse engineering + mapping support.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 3:11 pm 
Regular
Regular

Joined: Mon Jun 14, 2004 1:42 pm
Posts: 80
Location: Brazil
>So, AndromMDA DOES work with Argo ?
yes :'(
Argo seem to have too old XMI.
>hbm2class does not exist.
I mean hbm2java...
but class2hbm is ended ?
>hbm2ddl is still there.

>hbm2java will continue to be supported
good, I need only to generate the HBM, hbm2java does the rest

>what is ecore ? (i've heard the name, but it does not ring a bell)
ecore=>EMF. Eclipse implemented Sun's JMI and ecore is a Kind of XMI model. I can export my argo model do ecore and look it in eclipse (at least the class model).
Eclipse has a lot of api that generate code from those ecore models.


>I'm currently working on a Hibernate plugin for eclipse which is planned
>to add good reverse engineering + mapping support.

That's wonderfoul news! It will read from XMI ? :)

_________________
Alexandre Torres
--------------------


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 03, 2004 3:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
class2hbm was ended yes. Was not complete, mostly a toy - not kept uptodate + the usecase for it was very limited (I don't know any ;)

hbm2java does not yet support the new stuff in H3 - will do at some point.

looked at it, but I'm missing a way to run these tools without a 50 meg dependency + headless mode....

Read from XMI ? Why not ;) ...well, it is not a priority - will accept patches/contributions for it though ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Is there any support for anything like class2hbm?
PostPosted: Wed May 04, 2005 2:00 pm 
Newbie

Joined: Wed May 04, 2005 12:44 pm
Posts: 3
Why was class2hbm ended? I can think of a very common use case. I am developing a new application. I start by creating my Java classes. I want to create hbm and ddl from that. I would like a head start on my hbm since I have hundreds of attributes in my model.

I know the original posting was a couple years ago so perhaps the thinking has changed. Is there any tool now that will generate hbm from java classes?

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 04, 2005 5:28 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
not at the moment.

as written previously class2hbm were not good enough to be remotely usable.

today with jdk 1.5 and generics it will be much easier to create a semi usefull mapping - contributions are welcome.

the closest tool we have at the moment is to use annotations
and just put a @Entity on a class and its basically mapped ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: class2hbm
PostPosted: Wed May 04, 2005 6:15 pm 
Regular
Regular

Joined: Mon Apr 25, 2005 9:22 am
Posts: 62
Location: Bucharest/Romania
Does the class2hbm generates hbm starting from .class or from source?

Thinking of generating hbm from .class it seems to me pretty impossible (even with the support of generics: the bytecode is not containing this part). Probably the sole approach would be the Annotations usage.

Generating hbm from java sources seems also quite useless (probably this time generics and annotations could be helpfull).

just my 2c


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 12:13 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
class2hbm is dead (for quite some time). No longer included with H3 dist. Use XDoclet if you have a preference for this development approach.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 3:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the bytecode does contain that part (otherwise annotations would have a hard time working ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 3:48 am 
Regular
Regular

Joined: Mon Apr 25, 2005 9:22 am
Posts: 62
Location: Bucharest/Romania
sure the annotations are in, but not the generics ;-).


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 4:54 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
wanna bet ? ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 05, 2005 5:21 am 
Regular
Regular

Joined: Mon Apr 25, 2005 9:22 am
Posts: 62
Location: Bucharest/Romania
danish beer?

he he... looked in the bad place.... than it will make sense at least in a way. (owe you a beer)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.