Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Date date;
- private List<AdsEntity> adsDetails;
- ... getters and setters
- private int id;
- private String description;
- @Insert({
- "<script>",
- "INSERT INTO tb_ads_details (idMyInfo, adDate)"
- + " VALUES"
- + " <foreach item='adsDetails' index='index' collection='adsDetails' separator=',' statement='SELECT LAST_INSERT_ID()' keyProperty='id' order='AFTER' resultType='java.lang.Integer'>"
- + " (#{adsDetails.idMyInfo, jdbcType=INTEGER}, #{adsDetails.adDate, jdbcType=DATE}) "
- + " </foreach> ",
- "</script>"})
- void saveAdsDetails(@Param("adsDetails") List<AdsDetailsEntity> adsDetails);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement