use of org.olat.upgrade.model.RepositoryEntryUpgradeToGroupRelation in project openolat by klemens.
the class OLATUpgrade_10_0_0 method create.
public RepositoryEntryUpgradeToGroupRelation create(RepositoryEntryUpgrade entry, Group group, boolean defaultRelation) {
RepositoryEntryUpgradeToGroupRelation rel = new RepositoryEntryUpgradeToGroupRelation();
rel.setCreationDate(new Date());
rel.setDefaultGroup(defaultRelation);
rel.setGroup(group);
rel.setEntry(entry);
dbInstance.getCurrentEntityManager().persist(rel);
return rel;
}
Aggregations