mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
Update test case for #750 to reflect the mismatched names
This commit is contained in:
parent
a94afa0b6f
commit
4485df4de6
@ -1,11 +1,14 @@
|
||||
package com.mysema.query.domain;
|
||||
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.junit.Test;
|
||||
import static org.junit.Assert.assertNotNull;
|
||||
|
||||
|
||||
public class Generic14Test {
|
||||
|
||||
@ -22,6 +25,13 @@ public class Generic14Test {
|
||||
@MappedSuperclass
|
||||
public static class BasePersistable<T extends Serializable> extends AbstractPersistable<T> implements UpdateInfo {
|
||||
|
||||
private T id;
|
||||
|
||||
@Override
|
||||
public T getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@MappedSuperclass
|
||||
@ -30,6 +40,7 @@ public class Generic14Test {
|
||||
}
|
||||
|
||||
public interface Persistable<T> {
|
||||
T getId();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user