Annotation Value (Conversion dans une projection)

PHOTO EMBED

Wed May 31 2023 06:55:48 GMT+0000 (Coordinated Universal Time)

Saved by @ambre #projection #sql

Dans la requêtes =>    
donnee.flag_rafraichissement    AS histoLectureFlashRaw,
donnee.envoi_auto               AS envoiAutoEnergyRaw,
  
import org.springframework.beans.factory.annotation.Value;    


    @Value("#{target.envoiAutoEnergyRaw==null?null:target.envoiAutoEnergyRaw== 1}")
    Boolean isEnvoiAutoEnergy();

    @Value("#{target.histoLectureFlashRaw == 1}")
    boolean getHistoLectureFlash();
content_copyCOPY