tag:blogger.com,1999:blog-14570545.post114053267353164953..comments2023-10-03T14:02:23.078+02:00Comments on Thoughts and Fragments: Implementing Specifications with Apache Commons CollectionsSergio Bossahttp://www.blogger.com/profile/09315991044338298083noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-14570545.post-58736906835481827202007-07-30T13:27:00.000+02:002007-07-30T13:27:00.000+02:00Sergio,If I call your method requestGraduationThes...Sergio,<BR/><BR/>If I call your method requestGraduationThesis and somehow it doesn't pass, since I want to display the appropriate message to UI, how do I know which specification that causes it to fail ?<BR/><BR/>Regards,<BR/><BR/>SetyaSetyahttps://www.blogger.com/profile/03813815691287052202noreply@blogger.comtag:blogger.com,1999:blog-14570545.post-1141343246644741542006-03-03T00:47:00.000+01:002006-03-03T00:47:00.000+01:00Thanks for the response, Sergio. We'll try it out ...Thanks for the response, Sergio. We'll try it out and hopefully post our experience on the DDD mailing list.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14570545.post-1141216287488369732006-03-01T13:31:00.000+01:002006-03-01T13:31:00.000+01:00> We are currently using Hibernate > Criteria.> Ho...> We are currently using Hibernate <BR/>> Criteria.<BR/>> However, I'd need to do SQL, HQL or <BR/>> EJBQL in order to search in the <BR/>> database. It seems like it would be <BR/>> possible to do this from Commons <BR/>> Collections Predicates.<BR/>> Have you got any experience with <BR/>> this issue?<BR/><BR/>Sorry, I've no specific experience.<BR/><BR/>My opinion is you should abstract from Sergio Bossahttps://www.blogger.com/profile/09315991044338298083noreply@blogger.comtag:blogger.com,1999:blog-14570545.post-1141173381901476722006-03-01T01:36:00.000+01:002006-03-01T01:36:00.000+01:00Hi, SergioWe have talked about implementing specif...Hi, Sergio<BR/><BR/>We have talked about implementing specifications in a more generic fashion in my project. We are currently using Hibernate Criteria.<BR/><BR/>However, I'd need to do SQL, HQL or EJBQL in order to search in the database. It seems like it would be possible to do this from Commons Collections Predicates.<BR/><BR/>Have you got any experience with this issue?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-14570545.post-1140696587221494832006-02-23T13:09:00.000+01:002006-02-23T13:09:00.000+01:00Thanks for your kind comments, boys, hope to see m...Thanks for your kind comments, boys, hope to see more and more feedback.<BR/><BR/>Regards,<BR/><BR/>Sergio B.Sergio Bossahttps://www.blogger.com/profile/09315991044338298083noreply@blogger.comtag:blogger.com,1999:blog-14570545.post-1140665921284100342006-02-23T04:38:00.000+01:002006-02-23T04:38:00.000+01:00Hi,This is a good example how to implement specifi...Hi,<BR/><BR/>This is a good example how to implement specification with domain object.. hope can read more example from your siteryzamhttps://www.blogger.com/profile/08948488698923418322noreply@blogger.comtag:blogger.com,1999:blog-14570545.post-1140619846724954382006-02-22T15:50:00.000+01:002006-02-22T15:50:00.000+01:00Nice post (it's easy to say when I'm backlisted ;)...Nice post (it's easy to say when I'm backlisted ;) )<BR/><BR/>I was discussing this morning with a coworker about your example and discussed about how to have a Student and a Role pattern and use it as an abstract factory for the different types of specifications you could attach to it. Nice food for thought...Roni & Cindyhttps://www.blogger.com/profile/11442220403217805641noreply@blogger.com