-->
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.  [ 15 posts ] 

Should we remove <dynabean/> components in 2.1
Poll ended at Mon Nov 24, 2003 12:01 am
No! I really need this feature 0%  0%  [ 0 ]
Its nice, but I could manage without this 7%  7%  [ 3 ]
I don't use this feature 66%  66%  [ 29 ]
Please kick out beanutils! 27%  27%  [ 12 ]
Total votes : 44
Author Message
 Post subject: Should we remove <dynabean/> components in 2.1
PostPosted: Sat Oct 25, 2003 12:01 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
The development team thinks that the <dynabean/> tag is just bloat and is not happy with the hard dependency of Hibernate upon commons-beanutils. We'd love to be able to remove this feature, but we need to see how disruptive this would be. You would still be able to use dynabeans by writing your own CompositeUserTypes.


Last edited by gavin on Sun Nov 02, 2003 11:51 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 1:57 am 
Regular
Regular

Joined: Tue Sep 02, 2003 5:09 pm
Posts: 81
Location: Whitefish Montana
My distaste for Dynabeans stems from limitations their use imposes for Struts development that may not be true with the Hibernate implementation. Dynabeans also cause a disproportionate number of errors.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 2:10 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
I think It is better to use Map for this feature.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 4:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Yes, Juozas, I think you're right. When I originally implemented this stuff, I considered doing it for a Map instead of a DynaBean, but at the time people were asking for DynaBeans....

We can easily change the current code to work only for Maps.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 25, 2003 4:13 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
+1 for just doing this for Map...

...and i'll suggest we put an example implementation of a DynaBeanCompositeUserType on the wiki...good as an example of UserType's and good for any one who might depend on this dynabean stuff and want another solution ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 26, 2003 12:35 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
+1. I Agree with Max. The wiki should present an approach that will satisfy users who maybe using dyna-beans.


Top
 Profile  
 
 Post subject: Optional
PostPosted: Wed Oct 29, 2003 12:58 pm 
Senior
Senior

Joined: Sun Aug 31, 2003 3:14 pm
Posts: 151
Location: Earth (at the moment)
I don't personally use DynaBeans so it won't affect me much either way, but, how about putting the code you want to "remove" into an optional package so the core is not dependent on bean-utils but people who do want that functionality don't have to go to the wiki to try and find/figure out how to write it again for themselves? (not that I wouldn't love to see some more/better examples on the wiki...)


Top
 Profile  
 
 Post subject: So tell me
PostPosted: Thu Oct 30, 2003 10:14 pm 
Regular
Regular

Joined: Mon Oct 20, 2003 3:14 am
Posts: 53
Location: Sterling, VA, USA
To be quite honest, what I want is a way out of getters and setters. I want a generic get and generic set that takes a parameters that get me to the place I want.

Compile errors? Heck, I can write something make me a file full of static final string declarations based upon what's in the database.

I "grew up" in an environment like this. I want to get it back.

I'm just starting out, so if I can do it without Dynabeans sure, axe them.

Give me a pointer and their guillotine fodder.

-Joe

_________________
"A statistician is a mathmetician, broken down by age and sex".


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 1:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Well, as Juozas points out - everything you can do with a DynaBean, you can do with a Map.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 01, 2003 6:19 am 
Regular
Regular

Joined: Mon Oct 20, 2003 3:14 am
Posts: 53
Location: Sterling, VA, USA
Even the Struts KickStart book that talks a decent length about DynaBeans just uses them in ActionForms. They don't seem to get used outside of the "V" in the MVC.

I get the distinct feeling that, as designed, they never considered anyone would think about trying to persist them.

I'm kinda curious to hear what James Turner thinks, but I suspect that persisting DynaBeans isn't going to be all that useful to you unless your UI closely follow your object model i.e. each screen manipulates one object (uh huh...uh huh).

I would have to assume (I havent gotten that far yet) that this also implies that DynaBeans make it easy to get the data out of them and into something (anything!) else.

I'll trust you guys to make it easy for me :-)

_________________
"A statistician is a mathmetician, broken down by age and sex".


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 01, 2003 7:03 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Well, at the time this feature was added, a LOT of people had requested it. But then it turned out that noone really used it.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 02, 2003 11:50 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Due to absolutely underwhelming interest in DynaBeans, they're gone, replaced by the <dynamic-component> element, which uses a Map. I expect that this is far more generally useful.


Top
 Profile  
 
 Post subject: Something i would like to have :
PostPosted: Fri Nov 14, 2003 5:49 am 
Newbie

Joined: Thu Nov 13, 2003 6:50 am
Posts: 8
I have not used DynaBean/Dyna-Component etc.. But i have used a framework that allow for a single xml object that discribed the display and persistance.

You did not need to have Object per form, as you are add multiple xml objects per page. Another feature that i loved was that you could do grouping of attributes like "edit", "search", "label" etc. Using this framework allowed you to develop adminstrative screens at lightning speed as often all you have to do was map the Object to a table and then link the Object to a action like edit/search and you were in business.

Unfortunately the framework is propetory and written in non-java :( . Would we be able to do this kind of stuff with the Dyna-Component? Or is there something out there like this.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 14, 2003 7:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Have a look at OFBiz Entity Engine, it is more like this. Hibernate is not meant for this kind of app.


Top
 Profile  
 
 Post subject: OFBiz Entity Engine
PostPosted: Fri Nov 14, 2003 9:14 am 
Newbie

Joined: Thu Nov 13, 2003 6:50 am
Posts: 8
Thanks for the info, I would like to use something that can do both. So it can be used for RAD development and also allow for the creation of core business objects to be used from MQ and Webservices.

The project i am working on is going to replace a large legacy system written in 2E on top of a Db2 iSeries database. The table structive is massively complex and messy with over 700 tables. I was hoping to use Hibernate to map against this structure and create core business objects that could be called from the green screens and use some kind of RAD web development framework for the web frontend reusing these objects.


Could this Entity Engine run on top of Hibernate?

Thanks alot for you help mike

PS : I am writing a program to reverse engine 2E models into ERD daigrams and Hibernate mapping files


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 15 posts ] 

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.