Examples of saveManyToManyAssociations()


Examples of models.Event.saveManyToManyAssociations()

            for (User organizer : formEvent.getOrganizers()) {
                organizersInDb.add(User.findById(organizer.id));
            }
            formEvent.getOrganizers().clear();
            formEvent.getOrganizers().addAll(organizersInDb);
            formEvent.saveManyToManyAssociations("organizers");

            formEvent.update();

        } else {
            // Mise à jour d'un événement
View Full Code Here

Examples of models.ModuleVersion.saveManyToManyAssociations()

            // everything below here needs to be implemented
            moduleVersion.binaryFile = new BinaryContent();
            moduleVersion.binaryFile.content = new byte[]{1};
            moduleVersion.binaryFile.contentLength = 1;
            moduleVersion.save();
            moduleVersion.saveManyToManyAssociations("compatibility");

            createHistoricalEvent("Module updated - " + moduleVersion.playModule.name,
                                  String.format("%s (%s) uploaded version %s of %s",
                                                user.displayName,
                                                user.userName,
View Full Code Here

Examples of models.TalkFormat.saveManyToManyAssociations()

        TalkFormat format = TalkFormat.find.byId(id);
        if (format != null && format.getEvent().equals(getEvent())) {
            for (Proposal proposal : new ArrayList<Proposal>(format.getProposals())) {
                format.getProposals().remove(proposal);
            }
            format.saveManyToManyAssociations("proposals");
            format.delete();
        }
        // HTTP 204 en cas de succès (NO CONTENT)
        return noContent();
    }
View Full Code Here

Examples of models.User.saveManyToManyAssociations()

        user.password = password;
        user.accountActive = true;
        user.roles = new ArrayList<UserRole>(roles);
        user.rates = new ArrayList<Rate>();
        user.save();
        user.saveManyToManyAssociations("roles");
        return user;
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.