What do you want to cache? Your DB entities? Prepared Statements? Connections?
Type: Posts; User: salp; Keyword(s):
What do you want to cache? Your DB entities? Prepared Statements? Connections?
For code:
http://forum.springframework.org/showthread.php?t=33443
Small question, why don't you use the JSTL fmt taglib for formatting the date?
<fmt:formatDate value="${scope.object.yourVar}" pattern="dd/MM/yyyy" />
And ehmmm, I don't think I get the...
JdbcTemplate closes the resultset by calling JdbcUtils.closeResultSet
in doInPreparedStatement and doInCallableStatement (somewhere down the line in the call stack atleast).
But I don't think a...
pmularien is right about Spring not knowing about it.
The question that was raised with me is; are they different apps or just different user interfaces?
If they are different apps then I'd go...
The class is there, but the provided table can't be found.
I still think you're referencing table that don't exist (are called differently,. what ever), are in another scheme or what so ever.
This line gave me the hint:
ORA-00942: table or view does...
Either use auto-wiring as karldmoore suggested or just use OO-inheritance when possible. It's seldom a "bad plan" (tm) to abstract repeated and common logic to a superclass.
Agreed, please use [ code] ... [ /code] tags around you code.
The thing I see here (don't know if it's the case with hib3, it was the case with hib2), is that you evict the update reference from...
Well, no, I think you're actually right ;)
From org.spring.framework.transaction.annotation.Transactional:
@Target({ElementType.METHOD, ElementType.TYPE})...
No problem, was still busy with my coffee and browsing the forums ;)
I think you might want to recheck your database and DB creation scripts. :rolleyes:
It seems you (by accident) named your...
Could you post the related .hbm.xml file? Or the annotated DO? (which ever you use)
Just scanned the code quickly, but I don't see any real bottlenecks Java-wise.
Though my personal preference is always to include the column and type attributes in your hibernate mapping, if only...
Form validation is done quite similar to Spring MVC in SWF.
Key class is the org.springframework.validation.Validator interface.
I'd suggest you read the reference documentation (chapter 2 might...
To my knowledge LDAP searches are always done on a DN, never on an attribute.
Unless you iterate over a whole group (thus in your case the DN ou=Engineering, dc=MyDomain, dc=com) and check the...
I'm going to guess again karldmoore, one day i'll get it right. ;)
My guess is that he wants to know our opinion on adding another interface.
One that contains the setter for the dependency...
Oh, I misunderstood, but yeah, if you want 2 domain objects filled with a single form go for a composite object as the command.
Are you using Spring 1.2 or Spring 2.0?
Regards,
Barre
Yeah, start using JUnit, it'll help you track these kind of problems down within a few seconds.
What you have here is a copy/pasta or a typo error ;)
if...
You can do that using a custom editor (extend java.beans.PropertyEditorSupport) to do convert from the boolean value to the looked up value and back.
[edit]
For more clarity, implement a custom...
My guess would be that he wants to audit more then just the persisted data or at a moment that is not necessarily a DB operation (thus not triggering the hiberbate interceptors).
Look at the...
Ehm, I don't see the problem...
What is your question?
I fully agree with karldmoore, I'd also either go with a "message factory" bean for getting messages and inject it into the classes that use the messages.
If I'm not mistaking;
You define a bean in your configuration which gets initialized including it's dependencies. This bean gets placed in memory by Spring, which results in a call to hashCode().
...
Like rrups said, use variables.
I would guess the authors of the taglib thought frames are evil and they use (X)HTML/CSS(2) like most web designers do. But that's just my guess.
Target is...