Interface UuidRepository

All Superinterfaces:
CrudRepository<UuidEntity,UUID>, GenericRepository<UuidEntity,UUID>

public interface UuidRepository extends CrudRepository<UuidEntity,UUID>
  • Method Details

    • findUuidByName

      UUID findUuidByName(String name)
    • findByNullableValue

      @Query(value="select * from uuid_entity where :param is null", nativeQuery=true) Collection<UuidEntity> findByNullableValue(@Parameter("param") @Nullable @Nullable UUID param)
      This method semantically makes no sense because it'll always produce NULL without correctly wrapping nullable value like this: WHERE :nullableValue IS NULL AND nullable_value IS NULL OR :nullableValue IS NOT NULL AND nullable_value = :nullableValue