@Test
public void columnsOneToMany() {
SelectBuilder builder = (SelectBuilder)_annotationFactory.select();
builder.setCascade(Boolean.TRUE);
User user = builder.mock(User.class);
UserRoleTestVO userRole = builder.mock(UserRoleTestVO.class);
//
builder.columns(user.getId(), userRole.getRoleId(),
userRole.getUserId());
// builder.columns(user.getId(),
// builder.normalize(user.getRoles()).getRoleId(),
// builder.normalize(user.getRoles()).getUserId());
builder.and(user.getId(), 1L);
IQuery statment = builder.build();
Assert.assertEquals(
// "SELECT user_role.roleId,user_role.userId,user.id FROM user_mx_14.user_role,user_mx_14.user WHERE user_role.userId = ? AND user.id = ?",
"SELECT user.id,user_role.userId,user_role.roleId FROM user_mx_14.user_role,user_mx_14.user_details,user_mx_14.user WHERE user_role.userId = ? AND user_details.userId = ? AND user.id = ?",