You have to do two queries:
http://forum.springsource.org/showthread.php?137956-Query-on-DBREF-document-Fileds
Type: Posts; User: Andrei Tsibets; Keyword(s):
You have to do two queries:
http://forum.springsource.org/showthread.php?137956-Query-on-DBREF-document-Fileds
Ok, fine
Additional constructor
protected Criteria2ds(List<Criteria> criteriaChain, String key) {
super(criteriaChain, key);
this.criteriaChain = criteriaChain;
}
Why do you use " in find method? MongoDB shell find method expects document as a parameter, not a string.
You have to add regex condition on each field you want to look through.
as a variant:
Criteria2ds criteria =
Criteria2ds.where("location")
.geoWithin(new Polygon2ds(new Point(0, 0), new Point(3, 6), new Point(6, 1), new Point(0, 0)));
Criteria2ds...
user MongoConverter from MongoTemplate:
DBObject textSearchCommand = new BasicDBObject();
textSearchCommand.put("text", "user");
textSearchCommand.put("search", "testuser");
CommandResult...
It can be done by executing two queries:
Query userQuery = new Query(where("nomCollaborateur").regex("xxx", "i")));
userQuery.fields().include("_id");
List<Object> userList =...
The second document is field projection. Use the following:
Query query = new Query(where("zipcode").is(63109)) {
public DBObject getFieldsObject() {
return...
or:
Query query = new Query(new Criteria().andOperator(
where("key.attributes").elemMatch(where("name").is("k1").and("value").is("kv1")),...
Try the following:
BasicDBList bsonList = new BasicDBList();
DBObject criter1 = where("key.attributes").elemMatch(where("name").is("k1").and("value").is("kv1")).getCriteriaObject();...
Why do you need to set Job Parameter?
Do you have sftp_rsa file in the classpath?
Have a look how it is done for reader:
http://static.springsource.org/spring-batch/reference/html/configureStep.html#late-binding
<bean id="testWriter"...
It is also possible to implement custom FieldSetFactory, which will return extended DefaultFieldSet.
<bean id="reader" class="org.springframework.batch.item.file.FlatFileItemReader">...
<a href="<c:url value="/user/viewUsers.html">">View Users</a>
Optimistic Locking strategy can help you. Try to investigate Optimistic Locking in Hibernate and JPA.
You don't need cast to Active MQ classes.
Message in your case can be casted to javax.jms.ObjectMessage.
Have a look at JmsTemplate.browse* methods.
Try to configure "request" scope instead of "session"
public class ExtendedGenericXmlContextLoader extends GenericXmlContextLoader {
@Override
protected void...
Try to debug TransactionInterceptor.invoke, or configure log4j trace level for it:
log4j.properties
log4j.logger.org.springframework.transaction = debug, console...
It behaves in such manner.
DataIntegrityViolation is runtime exception. That is why it is propagated above service1.method1, and as a result the first transaction is rolled back too. Add try/catch...
yes
Decalarative transaction mamangement with transaction attributes works the same as in EJB, for example, in case of service1.f1, service2.f2, hibernate trasnaction manager the picture looks...
UnexpectedRollbackException is not test specific. It is from spring-tx. The behaviour will be the same.
It is spring tx implementation specific. Sertice1 and Service2 has own TransactionStatus...
Remove "none" for "/j_spring_security_logout" and add filters for /j_spring_security_check too.
Are /portal_STU.zul, /portal_INA.zul, /portal_MER.zul, /portal_ADM.zul, and /portal_SPN.zul all...
login-page is AuthenticationProcessingFilterEntryPoint.loginFormUrl and AuthenticationProcessingFilter.authenticationFailureUrl if authentication-failure-url is not assigned.
I guess your...
why not to use parameter?
<prop> key="org.springframework.security.concurrent.ConcurrentLoginException">/login.jsp?error_code=2</prop>