-->
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.  [ 2 posts ] 
Author Message
 Post subject: Extension to hbm2java to support DTOs better?
PostPosted: Mon Feb 09, 2004 7:09 pm 
Expert
Expert

Joined: Thu Jan 08, 2004 6:17 pm
Posts: 278
Let's say you like hbm2java and you use it to generate base classes for your domain model.

Let's say you want to use those base classes as your Data Transfer Objects (DTOs) to expose in your service layer, so you can send them to web service clients or to other clients which can't access your persistence layer.

Let's also say that you want to have your actual domain logic implement richer behavior, and you *don't* want your clients to have access to that richer behavior (since it won't ever work outside of your service layer).

I have a small feature request for hbm2java that I think would support this nicely.

I started a thread under "Application Architecture" and then I morphed it into a proposal for a new hbm2java feature to support this use case (I got on a roll and lost track of which forum I was in). So here's the link to the thread in the other forum:

http://forum.hibernate.org/viewtopic.ph ... 98#2189398

I hope this isn't too much of a cross-post :-) Please discuss this over there?

Thanks!
Rob


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 09, 2004 7:23 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Sounds reasonable to me. Send the request to JIRA (with patches would be great).


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