I am using the auto-generated code from "RESTful Webservice from Database" in Netbeans, so the columns are mapped automatically
It happens with both the row