org.sfm.querydsl.QueryDslMappingContextFactoryBuilder Maven / Gradle / Ivy
package org.sfm.querydsl;
import com.mysema.query.Tuple;
import org.sfm.map.context.MappingContextFactoryBuilder;
import org.sfm.map.context.KeySourceGetter;
import java.sql.SQLException;
public class QueryDslMappingContextFactoryBuilder extends MappingContextFactoryBuilder {
public QueryDslMappingContextFactoryBuilder() {
super(new TupleKeySourceGetter());
}
private static class TupleKeySourceGetter implements KeySourceGetter {
@Override
public Object getValue(TupleElementKey key, Tuple source) throws SQLException {
return source.get(key.getExpression());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy