If you are using JpaRepository interface, than the following is also possible:
JpaRepository
@Query(value = "SELECT * FROM get_actor_by_id(?1)", nativeQuery = true) Actor getActorByCallingFunction(final Integer id);