Set<SingularAttribute<? super T, ?>> attributes = type.getSingularAttributes();
private static Set<SingularAttribute<?, ?>> collectIdAttributes(IdentifiableType<?> entityType) { Set<SingularAttribute<?, ?>> idTypes = new TreeSet<>(ATTRIBUTE_NAME_COMPARATOR); for (SingularAttribute<?, ?> attribute : entityType.getSingularAttributes()) { if (attribute.isId()) { idTypes.add(attribute); } } return idTypes; }
private static Set<SingularAttribute<?, ?>> collectIdAttributes(IdentifiableType<?> entityType) { Set<SingularAttribute<?, ?>> idTypes = new TreeSet<>(ATTRIBUTE_NAME_COMPARATOR); for (SingularAttribute<?, ?> attribute : entityType.getSingularAttributes()) { if (attribute.isId()) { idTypes.add(attribute); } } return idTypes; }
public static SingularAttribute<?, ?> getVersionAttribute(IdentifiableType<?> entityType) { if (!entityType.hasVersionAttribute()) { return null; } for (SingularAttribute<?, ?> attribute : entityType.getSingularAttributes()) { if (attribute.isVersion()) { return attribute; } } return null; }
public static SingularAttribute<?, ?> getVersionAttribute(IdentifiableType<?> entityType) { if (!entityType.hasVersionAttribute()) { return null; } for (SingularAttribute<?, ?> attribute : entityType.getSingularAttributes()) { if (attribute.isVersion()) { return attribute; } } return null; }
Set<SingularAttribute<? super T, ?>> attributes = type.getSingularAttributes();