Add Source Code Linter Pipeline
This commit is contained in:
parent
0d0e7140c4
commit
d252f6ef50
313 changed files with 36277 additions and 0 deletions
|
@ -0,0 +1,31 @@
|
|||
package +zoccolo+.jpa;
|
||||
|
||||
import javax.persistence.metamodel.SingularAttribute;
|
||||
|
||||
public class SingularParameter<D, T> implements SearchParameter<T> {
|
||||
|
||||
private final String name;
|
||||
|
||||
private final T value;
|
||||
|
||||
private final Class<T> type;
|
||||
|
||||
public SingularParameter(SingularAttribute<D, T> sa, T value) {
|
||||
this.name = sa.getName();
|
||||
this.value = value;
|
||||
this.type = sa.getJavaType();
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public T getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Class<T> getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue