
org.simpleflatmapper.querydsl.QueryDslMappingContextFactoryBuilder Maven / Gradle / Ivy
package org.simpleflatmapper.querydsl;
import com.mysema.query.Tuple;
import org.simpleflatmapper.map.context.MappingContextFactoryBuilder;
import org.simpleflatmapper.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