Tuesday, September 07, 2010
Google Custom Search

Go to...

Recent Forum Posts

Our Community

Membership Membership:
Latest New User Latest: lh@sysit.com
New Today New Today: 7
New Yesterday New Yesterday: 20
User Count Overall: 10691

People Online People Online:
Visitors Visitors: 8
Members Members: 0
Total Total: 8

Online Now Online Now:

ClearCanvas Community Forums

Hibernate broker classes
Last Post 2010-06-07 11:28 AM by ikozyol. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
ikozyol
Basic Member
Basic Member
Posts:22

--
2010-06-03 04:42 PM  

Hello,

I've been looking at the database piece of the RIS server. I am not that familiar with Hibernate, so I was wondering if anyone can please explain the function of the many broker classes in the Hibernate namespaces. I am guessing that broker is some type of design pattern.

Also, why are the Ruby scripts needed to auto generate code?  And what is the purpose of the *.gen.cs files?

Any tidbit of information to satisfy my curiosity would be greatly appreciated.

Thanks!

Igor Kozyol

resnickj
Senior Member
Senior Member
Posts:891

--
2010-06-04 09:08 PM  
Hello Igor,

Regarding Hibernate and Brokers, this article may help:
http://www.codeproject.com/KB/architecture/NHibernateBestPractices.aspx

In particular, read the section entitled "Separated Interface", but replace the word "DAO" with "Broker".

Regarding code generation, this is well known technique with when building an application where you have some knowledge of the domain model that can be inferred from another source (from the Hibernate mapping files in our case). It just means less code to write by hand, and less possibility of errors due to inconsistencies between code, mapping files, and database schema.

j
ikozyol
Basic Member
Basic Member
Posts:22

--
2010-06-07 11:28 AM  
Very interesting. Thanks very much for the explanation, and the link. Much appreciated!

Igor
You are not authorized to post a reply.

Active Forums 4.1
Copyright 2010 ClearCanvas Inc.