Adding a test scenario for @MappedSuperclass, fixed a couple bugs w.r.t. generating links to entities.
This commit is contained in:
@@ -19,8 +19,7 @@ import org.springframework.util.StringUtils;
|
||||
*
|
||||
* @author Jon Brisbin
|
||||
*/
|
||||
public class JpaEntityMetadata
|
||||
implements EntityMetadata<JpaAttributeMetadata> {
|
||||
public class JpaEntityMetadata implements EntityMetadata<JpaAttributeMetadata> {
|
||||
|
||||
private Class<?> type;
|
||||
private JpaAttributeMetadata idAttribute;
|
||||
|
||||
@@ -5,14 +5,14 @@ import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
|
||||
/**
|
||||
* @author Jon Brisbin <jbrisbin@vmware.com>
|
||||
* @author Jon Brisbin
|
||||
*/
|
||||
@Entity
|
||||
public class Person {
|
||||
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private Long id;
|
||||
private Long id;
|
||||
private String name;
|
||||
|
||||
public Person() {
|
||||
|
||||
Reference in New Issue
Block a user