If an interceptor returns false (which is the case for the PayloadValidatingInterceptor in the case of a validation error) not further interceptor will be executed. So you have to add the...
Type: Posts; User: ojs; Keyword(s):
If an interceptor returns false (which is the case for the PayloadValidatingInterceptor in the case of a validation error) not further interceptor will be executed. So you have to add the...
Also note, that http://jira.springframework.org/browse/SWS-372 could be related.
Hello,
does anyone know, how to do cross context communication without 'real remoting'?
I have two separate .war files deployed in my tomcat, a 'backend.war' and a 'frontend.war'. The...
Well, using an EntityManager(Factory) makes your DAOs independend of Spring (they could also run in a non-spring JEE server). Using JpaTemplate you are bound to spring which is currently not a...
If you don't want to use these annotations, you have (AFAIK) to inject the EntityManagerFactory and obtain the entityManager from it everytime you need it, manually.
I have a GenericDAO interface:
public interface GenericDAO<T, PK extends Serializable>
{
void create(T newInstance);
T read(PK id);
List<T> readAll();
T update(T...
I don't use a JpaTemplate because it's somewhat 'deprecated' (not in the sense of the java term). See the note at http://www.springframework.org/docs/api/org/springframework/orm/jpa/JpaTemplate.html...
I use EntityManager's (JPA) merge() method, which seems to be the only way. Maybe that's the problem?
Hello!
I don't understand this behaviour:
Parent parent = getParentById(x);
Childs childs = parent.getChilds();
LOG.debug("# of Childs: " + childs.size());
Yeah, I think that's the case.
Yes, based on an UUID.
Well, the service is bound via Spring HTTP Invoker, so remote.
Thank's a lot for trying to help me! Ok, here are my mappings:
@Entity
@Cache(usage=CacheConcurrencyStrategy.READ_WRITE)
public class Parent
{
private Set<Child> childs;
Yes, i set both sides of the relationship before saving the child.
I currently have a problem with hibernate's second level cache and hope to find some help here. Let me describe my problem based on an example to keep things easy understandable.
There are two...
disabled="" makes no sense. Do either disabled="disabled" or no disabled-attribute at all.
I haven't worked much with BigDecimal, but what you're doing is, comparing a BigDecimal with a...
Well, there's already an issue at http://opensource.atlassian.com/projects/spring/browse/MOD-185 :-)
Who is maintaining the .pom files for spring-modules? The current dependencies of the cache module causes much work (excluding all the unused cache providers). Someone should mark most of the...
The html disabled attribute has no true/false value. This is for compatibility with non-xhtml. Example:
Valid Non-XHTML use:
<input type="text" name="foo" value="bar" disabled>
XHTML...
What you can try is:
- Do a 'mvn clean packate' without acegi
- Check your target directory for added .jar files
- Redo the 'mvn clean packate' with acegi
- Recheck your target directory for...
I disabled it, because I'd like to know what and when things happens to our database. If I need more data, I join it explicitly.
Best
Oliver
Hello,
the form:password tag in spring 2.0.2 doesn't redisplay the password. Version 2.0.3 even makes this configurable.
To work around this problem, you can place your code (to set the...
So, it should be perfectly safe to grant access to everything starting with /k/ - right? Somebody would have to guess two UUIDs, which should be hard enough :-)
Best
Oliver
I'd like to have only one flow controller. What is the format of the URL, SWF redirects to? Currently my http://domain/flow/myFlowId is redirected to http://domain/flow/k/[UUIDs].
Is /k/ always...
Thank's for this great article! One thing I'm missing a bit is how to handle security in a redirectOnPause world. I'm using REST-style URLs (by using the RequestPathFlowExecutorArgumentHandler as the...
When I said that the statement would get prepared, I didn't mean a PreparedStatement in the sense of a database PREPARE. I'm using Hibernate EntityManager for JPA support - all statements in my...
I need this only for cosmetics :-)
I have a GenericDAO that builds some JQL statements for later execution. I'd like to bind them to a name to be able to get the statement by name.
Another...