public static User create(User user) throws ObjectUpdateException {
DatabaseFactory instance = DatabaseFactory.getInstance("rbac");
SQLQuery sql = SQL.getSQL(User.class, "create");
Long id = (Long) instance.update(user, sql);
if (id == null) {
throw new DatabaseFactoryException("Ocurrio un error al obtener el id del objeto usuario");
}
user.setId(id);
return user;
}