AbstractIdentifiableType implements IdentifiableType<X> { @Override public boolean hasSingleIdAttribute() { return true; } AbstractIdentifiableType(Class<X> javaType); void setIdentifier(final Identifier<X, ?> identifier); @Override boolean hasSingleIdAttribute(); @Override SingularAttribute<X, Y> getDeclaredVersion(Class<Y> type); @Override AbstractIdentifiableType<? super X> getSupertype(); boolean hasSubtypes(); boolean isAbstract(); Set<AbstractIdentifiableType<? extends X>> getSubtypes(); @Override SingularAttribute<? super X, Y> getVersion(Class<Y> type); @Override boolean hasVersionAttribute(); @Override Set<Attribute<? super X, ?>> getAttributes(); @Override AbstractAttribute<? super X, ?> getAttribute(String name); @Override CollectionAttribute<? super X, ?> getCollection(String name); @Override CollectionAttribute<? super X, E> getCollection(String name, Class<E> elementType); @Override ListAttribute<? super X, E> getList(String name, Class<E> elementType); @Override ListAttribute<? super X, ?> getList(String name); @Override MapAttribute<? super X, K, V> getMap(String name, Class<K> keyType, Class<V> valueType); @Override MapAttribute<? super X, ?, ?> getMap(String name); @Override SetAttribute<? super X, E> getSet(String name, Class<E> elementType); @Override SetAttribute<? super X, ?> getSet(String name); @Override Set<PluralAttribute<? super X, ?, ?>> getPluralAttributes(); @Override Set<SingularAttribute<? super X, ?>> getSingularAttributes(); @Override SingularAttribute<? super X, Y> getSingularAttribute(String name, Class<Y> type); @Override SingularAttribute<? super X, ?> getSingularAttribute(String name); @Override Set<Attribute<X, ?>> getDeclaredAttributes(); @Override Set<PluralAttribute<X, ?, ?>> getDeclaredPluralAttributes(); @Override Set<SingularAttribute<X, ?>> getDeclaredSingularAttributes(); @Override AbstractAttribute<X, ?> getDeclaredAttribute(String name); @Override CollectionAttribute<X, E> getDeclaredCollection(String name, Class<E> elementType); @Override CollectionAttribute<X, ?> getDeclaredCollection(String name); @Override ListAttribute<X, E> getDeclaredList(String name, Class<E> elementType); @Override ListAttribute<X, ?> getDeclaredList(String name); @Override MapAttribute<X, K, V> getDeclaredMap(String name, Class<K> keyType, Class<V> valueType); @Override MapAttribute<X, ?, ?> getDeclaredMap(String name); @Override SetAttribute<X, E> getDeclaredSet(String name, Class<E> elementType); @Override SetAttribute<X, ?> getDeclaredSet(String name); @Override SingularAttribute<X, Y> getDeclaredSingularAttribute(String name, Class<Y> type); @Override SingularAttribute<X, ?> getDeclaredSingularAttribute(String name); @Override TypesSpecification<? super X, ?> getTypes(); @Override PropertiesSpecification<? super X, ?, ?, ?> getProperties(); @Override Set<FieldSpecification<? super X, ?>> getFieldSpecifications(); @Override FieldSpecification<? super X, ?> getFieldSpecification(String fieldName); @Override Identifier<? super X, ?> getIdentifier(); @Override Class<X> getJavaType(); EntityLifecycleListenerManager getLifecycleListenerManager(); void setLifecycleListenerManager(EntityLifecycleListenerManager lifecycleListenerManager);  }
@Test void hasSingleIdAttributeReturnsAlwaysTrue() { assertTrue(et.hasSingleIdAttribute()); }