From: Gavin K. <Gav...@ex...> - 2002-12-23 07:47:24
|
Would someone have a look over this: http://carrierwave.sourceforge.net/doc/Overview.html and figure out exactly what it does and how it does it .... it has a Hibernate persistence provider, apparently, and seems to maybe help with the problem of retrieving a fully initialized graph of objects. I havn't quite got time to try to get my head around it right now. Gavin ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Christian B. <chr...@bl...> - 2002-12-23 08:11:25
|
On 23 Dec (18:47), Gavin King wrote: > Would someone have a look over this: > > http://carrierwave.sourceforge.net/doc/Overview.html > > and figure out exactly what it does and how it does it .... it has > a Hibernate persistence provider, apparently, and seems to > maybe help with the problem of retrieving a fully initialized > graph of objects. > > I havn't quite got time to try to get my head around it right now. Ah, I developed something similar to this for my company: An abstract Criteria. We faced the problem of decoupling the client from the Business Facade: A client view needs all Persons whose firstName is "Foo" and wants the returned Collection to be a sorted List by "lastName". Imagine other abstract "queries" or "criterias" like that. The EJB Entity Bean approach would be to model methods and finders for every kind of query. Thats not a solution of course. Our abstract Criteria is an object query parse tree, you just build the Query in memory with method calls like infix/postfix/projection/selection/whereClause/and-much-more This gives you a Criteria object which can be passed down to the Business Facade to retrieve Collections. A method would be defined as "findPersonsByCriteria(Criteria criteria)". The DAO (abstract DAO factory) also receives a Criteria. The magic part is: The Criteria has Generators for, currently: EJB-QL, SQL, HQL. EJB-QL is pretty useless, but it was an easy start. The DAO uses the appropriate Generator to produce the real query for its native implementation, e.g. the HQLGenerator. So far, we used the Criteria on a couple of projects and never wrote any SQL or other queries by hand. I like it. :) CarrierWave has the same idea, but a different implementation and some features our Criteria doesn't have or would be outside the scope (like modification of the graph). -- Christian Bauer tu...@in... |
From: Ralf E. S. <mo...@re...> - 2002-12-30 22:59:48
|
Hi, as a newbie using XDoclet (today it's working for the very first time) i have two questions: * Is there any chance to add predefined queries to the generated mapping? * Is there any chance to generate the bean-pattern (setXXX(), getXXX() and especially the addXXX(Child)/setXXX(Parent)) methods of the java-bean class? I really do not like to write them down... Regards, Ralf |
From: Max R. A. <ma...@eo...> - 2002-12-23 08:24:40
|
I must say it looks complex, but sweet :) Only problem is it's GPL license - makes it unusable for my projects - bummer :( /max ----- Original Message ----- From: "Gavin King" <Gav...@ex...> To: <hib...@li...> Sent: Monday, December 23, 2002 8:47 AM Subject: [Hibernate] CarrierWave Would someone have a look over this: http://carrierwave.sourceforge.net/doc/Overview.html and figure out exactly what it does and how it does it .... it has a Hibernate persistence provider, apparently, and seems to maybe help with the problem of retrieving a fully initialized graph of objects. I havn't quite got time to try to get my head around it right now. Gavin ********** CAUTION - Disclaimer ********** This message may contain privileged and confidential information. If you are not the intended recipient of this message (or responsible for delivery of the message to such person) you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error, you should destroy it and kindly notify the sender by reply e-mail. Please advise immediately if you or your employer do not consent to Internet e-mail for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of Expert Information Services Pty Ltd ("The Company") shall be understood as neither given nor endorsed by it. The Company advises that this e-mail and any attached files should be scanned to detect viruses. The Company accepts no liability for loss or damage (whether caused by negligence or not) resulting from the use of any attached files. **EIS******** End of Disclaimer ********** |
From: Christian M. <vc...@cl...> - 2003-01-04 14:46:20
|
CarrierWaveHi all, now that postgresql support schemas, i would like to leverage this in my = next project.In this project, i will have 1 to N schema(s) having the = exactly same table names. What i would like to do it to be able to = specify at runtime, once i open a hibernate session the schema name on = which i would like to work. Such mutator could temporarly update ( for = the duration of the session) the schema name specified by the root = <hibernate-mapping> element. It might be usefull too, to find a way to specify a schema name in the = query language (if we want to be able to do a query working on more than = one schema at a time that got the same table names) What do you think about this ? Is hibernate already support what i would = like to do ? Thanks in advance and happy new year everyone. Christian Meunier |