mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-16 21:01:10 +08:00
31 lines
661 B
Java
31 lines
661 B
Java
package com.mysema.query.codegen;
|
|
|
|
import com.mysema.query.annotations.QueryEmbeddable;
|
|
import com.mysema.query.annotations.QueryEntity;
|
|
|
|
public class QueryEmbeddable2Test extends AbstractExporterTest {
|
|
|
|
@QueryEntity
|
|
public static class User {
|
|
|
|
Complex<String> complex;
|
|
|
|
}
|
|
|
|
@QueryEmbeddable
|
|
public static class Complex<T extends Comparable<T>> implements Comparable<Complex<T>> {
|
|
|
|
T a;
|
|
|
|
@Override
|
|
public int compareTo(Complex<T> arg0) {
|
|
return 0;
|
|
}
|
|
|
|
public boolean equals(Object o) {
|
|
return o == this;
|
|
}
|
|
|
|
}
|
|
|
|
} |