MySQL aggregate function return value to JAVA POJO Class -
i using mysql , want fire query select count(*) table
.then want store homecoming value in java pojo
.
mysql query returns signed or unsigned integer java supports signed integer how can handle error?
projectlistmodel class simple bean not hibernate entity. it's more like:
query.setresulttransformer(transformers.aliastobean(projectlistmodel.class));
projectlistmodel contain field public int rowcount
going store homecoming value.
handle value in seek grab block handles numberformatexception
, if catches utilize sth. this
java mysql hibernate
No comments:
Post a Comment