package com.peterphi.std.guice.hibernate.webquery;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity(name = "mapped_superclass_test_entity")
public class MappedSuperclassEntity extends AbstractEntity
{
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	@Column(name = "obj_name")
	private String name;
}

@@ -455,10 +455,100 @@
 g name;%0A
+%0A%0A%09public Long getId()%0A%09%7B%0A%09%09return id;%0A%09%7D%0A%0A%0A%09public String getName()%0A%09%7B%0A%09%09return name;%0A%09%7D%0A
 %7D%0A

Make sure MappedSuperclassEntity (with id field marked as private) has getter/setter for id