mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
This commit is contained in:
parent
a461918e9f
commit
18b8e0ddfa
@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-root</artifactId>
|
||||
<version>1.2.4</version>
|
||||
<version>1.2.4-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
|
||||
@ -61,9 +61,7 @@ public abstract class EDateTime<D extends Comparable> extends EDate<D> {
|
||||
return ODateTime.create(cl, Ops.DateTimeOps.CURRENT_TIMESTAMP);
|
||||
}
|
||||
|
||||
private volatile ENumber<Integer> dayOfMonth, dayOfWeek, dayOfYear;
|
||||
|
||||
private volatile ENumber<Integer> year, month, week, hours, minutes, seconds, milliseconds, yearMonth;
|
||||
private volatile ENumber<Integer> hours, minutes, seconds, milliseconds;
|
||||
|
||||
public EDateTime(Class<? extends D> type) {
|
||||
super(type);
|
||||
@ -117,18 +115,5 @@ public abstract class EDateTime<D extends Comparable> extends EDate<D> {
|
||||
}
|
||||
return seconds;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a week expression
|
||||
* <p>NOT supported in JDOQL and not in Derby</p>
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public ENumber<Integer> week() {
|
||||
if (week == null){
|
||||
week = ONumber.create(Integer.class, Ops.DateTimeOps.WEEK, this);
|
||||
}
|
||||
return week;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user