๐Ÿ”™๋’ค๋กœ๊ฐ€๊ธฐ

๋ฒŒํฌ ์—ฐ์‚ฐ ์˜ˆ์ œ

String qlString = "update Product p " +
		 "set p.price = p.price * 1.1 " + 
		 "where p.stockAmount < :stockAmount"; 
int resultCount = em.createQuery(qlString)
		 .setParameter("stockAmount", 10) 
		 .executeUpdate();

๋ฒŒํฌ ์—ฐ์‚ฐ ์ฃผ์˜

ํ•ด๊ฒฐ์ฑ… :