long userId = rs.getLong("userId");
String userName = rs.getString("userName");
Timestamp createDate = rs.getTimestamp("createDate");
Timestamp modifiedDate = rs.getTimestamp("modifiedDate");
String name = rs.getString("name");
<BUG>long newEntryId = CounterLocalServiceUtil.increment();
ps = con.prepareStatement(</BUG>
"insert into TagsEntry (entryId, groupId, companyId, " +
"userId, userName, createDate, modifiedDate, name) " +
"values (?, ?, ?, ?, ?, ?, ?, ?)");

long userId = rs.getLong("userId");
String userName = rs.getString("userName");
Timestamp createDate = rs.getTimestamp("createDate");
Timestamp modifiedDate = rs.getTimestamp("modifiedDate");
String name = rs.getString("name");
newEntryId = CounterLocalServiceUtil.increment();
ps = con.prepareStatement(
"insert into TagsEntry (entryId, groupId, companyId, " +
"userId, userName, createDate, modifiedDate, name) " +
"values (?, ?, ?, ?, ?, ?, ?, ?)");
