Search in sources :

Example 6 with MethodAttribute

use of com.blazebit.persistence.view.metamodel.MethodAttribute in project blaze-persistence by Blazebit.

the class ViewMetamodelTest method testMappingAttributesClassView.

@Test
public void testMappingAttributesClassView() {
    ViewMetamodel viewMetamodel = getViewMetamodel();
    Set<MethodAttribute<? super DocumentViewAbstractClass, ?>> attributes = viewMetamodel.view(DocumentViewAbstractClass.class).getAttributes();
    assertEquals(7, attributes.size());
}
Also used : MethodAttribute(com.blazebit.persistence.view.metamodel.MethodAttribute) ViewMetamodel(com.blazebit.persistence.view.metamodel.ViewMetamodel) DocumentViewAbstractClass(com.blazebit.persistence.view.testsuite.basic.model.DocumentViewAbstractClass) Test(org.junit.Test) AbstractEntityViewTest(com.blazebit.persistence.view.testsuite.AbstractEntityViewTest)

Aggregations

MethodAttribute (com.blazebit.persistence.view.metamodel.MethodAttribute)6 AbstractMethodAttribute (com.blazebit.persistence.view.impl.metamodel.AbstractMethodAttribute)4 ManagedViewType (com.blazebit.persistence.view.metamodel.ManagedViewType)2 ViewMetamodel (com.blazebit.persistence.view.metamodel.ViewMetamodel)2 ViewType (com.blazebit.persistence.view.metamodel.ViewType)2 BasicUserTypeStringSupport (com.blazebit.persistence.view.spi.type.BasicUserTypeStringSupport)2 AbstractEntityViewTest (com.blazebit.persistence.view.testsuite.AbstractEntityViewTest)2 Set (java.util.Set)2 EntityType (javax.persistence.metamodel.EntityType)2 Test (org.junit.Test)2 KeysetPage (com.blazebit.persistence.KeysetPage)1 RecordingList (com.blazebit.persistence.view.impl.collection.RecordingList)1 RecordingNavigableSet (com.blazebit.persistence.view.impl.collection.RecordingNavigableSet)1 RecordingSet (com.blazebit.persistence.view.impl.collection.RecordingSet)1 ManagedViewTypeImplementor (com.blazebit.persistence.view.impl.metamodel.ManagedViewTypeImplementor)1 MappingConstructorImpl (com.blazebit.persistence.view.impl.metamodel.MappingConstructorImpl)1 ViewTypeImplementor (com.blazebit.persistence.view.impl.metamodel.ViewTypeImplementor)1 FlatViewType (com.blazebit.persistence.view.metamodel.FlatViewType)1 BasicDirtyTracker (com.blazebit.persistence.view.spi.type.BasicDirtyTracker)1 DirtyTracker (com.blazebit.persistence.view.spi.type.DirtyTracker)1