-->
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.  [ 9 posts ] 
Author Message
 Post subject: Middlegen - generating sets/bags/lists
PostPosted: Wed Apr 28, 2004 6:46 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
Isn't it possible to choose wich collection you want to generate in your mapping file during the middlegen task?

The way I see it (correct me if I'm wrong) , he only creates sets. But I started from an application full of lists, so I want to make him generate bags or lists. I don't seem to find anything on this in the documentation. For this project I could manually change the <set> into <bag>. But with large projects that wouldn't be an option.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 28, 2004 6:24 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Currently this is not selectable. It is on my TODO list but it does not have a high priority at this point. The Set is selected since it can be used in all situations and is a good general choice. You have several options:
1) Modify the output
2) Modify the code generation velocity script to generate the List instead
3) Modify Middlegen so its all configurable and submit the patch.

I prefer that you select the last one :-) but I suspect the second choice is best in your situation.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 2:58 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
david wrote:
I prefer that you select the last one :-) but I suspect the second choice is best in your situation.


If I had the time, I would gladly contribute. But I'm working on an essay on Hibernate now. So most of my attention goes to Hibernate itself. Perhaps after this essay or if I become ahead on schedule somehow.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 5:15 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
An essay? :)

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 29, 2004 7:32 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
Just a small one.
As a graduating student I'm currently testing the performance of Hibernate vs other methods for a company. Including all different methods to build your Hibernate application, the different caching mechanisms, ... . Just to see if it can be used efficiently in projects for the company in the future. And off course I'll have to document all my conclusions.

mmm, what more can I say for now:

Keep up the good work !


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 30, 2004 10:12 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Cool - Are you going to make it available?

In anycase, doing this type of research well is difficult. My thesis absorbed about a year of effort. I understand how time consuming it can be. I will appreciate any contributions if you find the time.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 03, 2004 3:01 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
david wrote:
Cool - Are you going to make it available?

In anycase, doing this type of research well is difficult. My thesis absorbed about a year of effort. I understand how time consuming it can be. I will appreciate any contributions if you find the time.


It is time consuming and sometimes difficult indeed. Sadly I only have 8 - 11 weeks for this.

At this point, I still want to make my work in english, but if I lack the time I'll have to make it in dutch. I can always translate it afterwards of course.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 13, 2004 6:36 am 
Beginner
Beginner

Joined: Tue May 11, 2004 12:08 pm
Posts: 38
Location: Davis,CA,USA
it sounds realy intressting, whitch alternatives do you compare?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 14, 2004 3:36 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
I started with a regular JDBC application. My task is to make it completely working using Hibernate. While doing this I had to document all problems I encountered, the steps I used, the comparison, ... .

Since learning Hibernate was within these 8 weeks, it shall remain with this comparison I'm afraid. After this work, I'll hopefully be graduated and as Hibernate is really interesting I'll be testing some more on my own later.

At the moment I'm implementing and comparing the different caching systems.

Peter


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 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.