app/src/main/java/db/juhaku/juhakudb/util/ReflectionUtils.java
/**
     * Method searches field with annotation {@link Id} through declared fields of given class.
     *
     * @param clazz instance of entity class to look for id field.
     * @return {@link Field} if found; otherwise null.
     *
     * @since 1.0.2
     */
Method searches field with annotation  Id through declared fields of given class.
@param clazz instance of entity class to look for id field.
@return  Field if found; otherwise null.


Method searches field with annotation Id through declared fields of given class . @param clazz instance of entity class to look for id field . @return Field if found ; otherwise null .
public static Field findIdField(Class<?> clazz) {
        for (Field field : clazz.getDeclaredFields()) {
            field.setAccessible(true);
            if (field.isAnnotationPresent(Id.class)) {
                return field;
            }
        }
        return null;
    }
public static Field findIdField ( Class < ? > clazz ) { for ( Field field : clazz . getDeclaredFields ( ) ) { field . setAccessible ( true ) ; if ( field . isAnnotationPresent ( Id . class ) ) { return field ; } } return null ; }
Method searches field with annotation {@link Id} through declared fields of given class.
Method searches field with annotation { @link Id } through declared fields of given class .