METAGEN-67 Updating testcase - mapped super class does now not contain an id
This commit is contained in:
parent
170d2c9bff
commit
8d1a767b35
|
@ -14,15 +14,16 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package org.hibernate.jpamodelgen.test.manytoone;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
|
||||
/**
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
@Entity
|
||||
public class ConcreteProduct extends Product {
|
||||
@Id
|
||||
long id;
|
||||
}
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package org.hibernate.jpamodelgen.test.manytoone;
|
||||
|
||||
import org.testng.annotations.Test;
|
||||
|
@ -34,7 +32,7 @@ public class MappedSuperclassManyToOneTest extends CompilationTest {
|
|||
assertMetamodelClassGeneratedFor( ConcreteProduct.class );
|
||||
assertMetamodelClassGeneratedFor( Product.class );
|
||||
assertMetamodelClassGeneratedFor( Shop.class );
|
||||
assertPresenceOfFieldInMetamodelFor( Product.class, "shop", "The many to one attribute shop shop is missing" );
|
||||
assertPresenceOfFieldInMetamodelFor( Product.class, "shop", "The many to one attribute shop is missing" );
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -14,12 +14,10 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package org.hibernate.jpamodelgen.test.manytoone;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Access;
|
||||
import javax.persistence.AccessType;
|
||||
import javax.persistence.ManyToOne;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
|
||||
|
@ -30,9 +28,7 @@ import org.hibernate.jpamodelgen.test.accesstype.Shop;
|
|||
*/
|
||||
@MappedSuperclass
|
||||
public class Product {
|
||||
@Id
|
||||
long id;
|
||||
|
||||
@Access(AccessType.FIELD)
|
||||
@ManyToOne
|
||||
Shop shop;
|
||||
}
|
||||
|
|
|
@ -14,8 +14,6 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
|
||||
package org.hibernate.jpamodelgen.test.manytoone;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
|
@ -24,7 +22,7 @@ import javax.persistence.Id;
|
|||
/**
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
@Entity
|
||||
@Entity
|
||||
public class Shop {
|
||||
@Id
|
||||
long id;
|
||||
|
|
Loading…
Reference in New Issue