Ahhh, look at that. It was right there in the first place and I didn't open up my eyes. Thanks Ben.
-Scott
Type: Posts; User: scottr; Keyword(s):
Ahhh, look at that. It was right there in the first place and I didn't open up my eyes. Thanks Ben.
-Scott
Each ORM supplies its own version of PlatformTransactionManager so it seemed this would be a good place to implement ORM to Spring exception conversion. Presumably a custom framework either uses its...
Are you sure? The code here from HibernateInterceptor appears to convert the exception in the catch block.
public Object invoke(MethodInvocation methodInvocation) throws Throwable {...
Hi All,
I have started using MethodInterceptor along with @Secured annotations to secure method invocations.
The manual recommends using the following setup within one's bean config files:
...
Hi All,
I am a fan of putting all my DataAccess code into separate DAO objects, and I also use hibernate as my ORM persistence API. It works great, but I dislike using this style of coding for...
jjustice,
Even though the new JPA methods sound obscure, they are intended to be operations as seen from an ORM perspective, not a RDBMS perspective. You never 'update' an object in ORM...
I have been reading this thread with interest http://forum.springframework.org/showthread.php?t=13352&highlight=portlet which discusses some of the issues in using the standard Acegi filter classes...
Good point. I must admit I dislike bloating the domain object with endless lines of business logic. And looking in my own code I can see examples of where I've delegated customer specific to...
Great stuff, Jurgen and Rod.
I have a question about the use of the plain Hibernate DAOs. If I had a DAO that I marked with the @Transactional annotation, wouldn't AOP create a subclass that...
By moving the business logic out of the domain objects into strategy objects, doesn't that just move towards an anaemic domain model anyway? The domain objects basically become placeholders for...
We don't actually let our customers supply their own code. But each customer has a different interpretation of essential business logic (eg. rating an order). Placing that business logic in the...
Thanks Rod, I'll have a look at the AspectJ integration. I downloaded the 2.0M1 but the pdf guide didn't seem to contain much that was new compared with 1.2.6.
On the subject of customisation, do...
All that I read about Domain driven design recommends placing business logic into domain objects and leaving services as a place to organise transactions, find top-level objects, etc.
The problem...
That's another alternative. I have a custom UserDetails object anyway so I might just add it as a GrantedAuthority owned by default.
-Scott
I was under the impression that would just automatically reject it. But I could be wrong.
What would be nice is to be able to specify eg.
/login.page=*
or
/login.page=ANY
or...
I have a web app with a security-context.xml configured with a filter security interceptor as follows:
<bean id="filterInvocationInterceptor"...
All in all, buffering causes no amount of headaches when considering how to implement FormModels. Consider what buffering vs non-buffering achieves and implies for the undelrying domain model:
...
Looks interesting. Actually, the spring sandbox has a similar API for closures and predicates, and I would think that makes a good basis for a query API. Just needs to be fleshed out with more of the...
There are similarities but my focus was more on ORM integration than sql.
regards,
Scott
Thanks for the useful comments.
I take your point that a Spring query API could end up re-inventing the wheel, and retreading the work already covered by existing ORMs. This is most certainly NOT...
Hi All,
I have been thinking for some time about what I believe would be a useful extension to the Spring framework, specifically to the DAO and ORM areas, in the form of a generic, OO query API....
Ok, I upgraded to Acegi-security 0.8.2 (I was using 0.8.1) and all is good.
regards,
Scott
Hi all,
I have just found this nasty little error pop up after upgrading my spring library to 1.2...
java.lang.IncompatibleClassChangeError
at...
CGLib is a popular approach to proxying, but have you considered other libraries like javassist, bcel, ast, etc? From what little I know of javassist, I think it allows you to create a subclass with...
Hi,
Are there plans to add support for Spring 1.2 into Spring IDE, and if so, is there an expected timeframe? I'm particularly interested in support for the new xml dtd features (eg. <property...