Good luck for yourself.
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Good luck for yourself.
Inversion of Control / Dependency Injection. Where have you been hiding the last year or soOriginally posted by Stas Sakalou:
May you tell me what does IoC / DI mean ?
Nothing to do with event handlers, and yes, there's a Spring MVC framework. But don't get hung up on that. Spring is more like a set of frameworks than a single monolithic one. In your case, I was thinking of the Spring bean container, its declarative transaction support (which builds on Spring AOP - don't worry about that AOP, it's based on simple JDK 1.3 proxies and really easy to use) and the Hibernate integration. You can simply ignore the rest.One year ago I read about spring. My impression was that this some kind of gambling with Event Handlers? They also make something similar to Struts.
It supports transactions, of course, but it doesn't allow you to declaratively specify transactional behaviour of business objects methods the way Spring, or for that matter the EJB container, will.Does hibernate itself have transactional support ?
Yep, standard stuff, it would fits the Spring/Hibernate stack like a glove; I haven't done anything else for the last year or so. The entire block of code between BEGIN TRANSACTION and END TRANSACTION would correspond to a single business method. With Spring, it takes one line of configuration or a single Commons Attributes attribute to specify the transactional behaviour of this method; all the types familiar from EJBs are supported and you get to specify the behaviour when exceptions are thrown too. The Spring bean container would be used to instantiate the business objects and DAOs, Hibernate session factory, look up data sources etc. etc. and wire them all together.The simple use case looks like shown bellow
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Good luck for yourself.
Castor JDO? Stay away from it. It predates JDO and is actually not a JDO implementation. A few years back it was ahead of the pack but it has remained almost static - Hibernate has comfortably overtaken it.Originally posted by Stas Sakalou:
Hmm. I tried to make a simple search for JDO. It looks (for me) like there are a couple of framework implementations, one of them from Custor.
Hollywood principle, yes, that's wat frameworks are all about. But for Spring this applies to application assembly and configuration only; you do call your business methods the oldfashioned way. It's not a message-passing SOA framework or event-driven framework or anything of the kind.Gambling with Event Handlers = Hollywood principle that it uses (Don't call us we call you). It calls business methods in case of certain events. Methods do not call methods (at least it looks so for me).
I personally prefer to roll my object model by hand, as it should generally not map 1:1 to the database schema. There are such tools in the Hibernate community, but I cannot really help you there.Have you seen a tool to generate DTO objects using database schema? It is very time consuming operation to create manually 400 objects with the same attributes as a db tables.
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Good luck for yourself.
Not at all. The most important thing the Eclipse plugin gives you is validation of the bean factory configuration file against your Java classes, which is nice, but not essential. The XML file format has deliberately been kept very simple. Any old XML editor will do.Originally posted by Stas Sakalou:
I just have tried to download spring. Download screen offers Spring IDE for Eclipse. I like Eclipse but for daily usage I prefer jIDEA. Is it a big problem to work with spring without support from IDE ?
Peter den Haan | peterdenhaan.com | quantum computing specialist, Objectivity Ltd
Good luck for yourself.
Good luck for yourself.
Good luck for yourself.
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|