mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-13 21:01:01 +08:00
added convenience constructor
This commit is contained in:
parent
17b00016f5
commit
ca1decbbde
@ -43,6 +43,10 @@ public class PComparable<D extends Comparable> extends EComparable<D> implements
|
||||
public PComparable(Class<? extends D> type, Path<?> parent, @NotEmpty String property) {
|
||||
this(type, PathMetadata.forProperty(parent, property));
|
||||
}
|
||||
|
||||
public PComparable(Path<?> parent, @NotEmpty String property) {
|
||||
this((Class<? extends D>) Comparable.class, PathMetadata.forProperty(parent, property));
|
||||
}
|
||||
|
||||
public boolean equals(Object o) {
|
||||
return o instanceof Path ? ((Path<?>) o).getMetadata().equals(metadata)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user