Tabnine Logo
UmsRolePermissionRelationExample
Code IndexAdd Tabnine to your IDE (free)

How to use
UmsRolePermissionRelationExample
in
com.macro.mall.model

Best Java code snippets using com.macro.mall.model.UmsRolePermissionRelationExample (Showing top 3 results out of 315)

origin: macrozheng/mall

public Criteria or() {
  Criteria criteria = createCriteriaInternal();
  oredCriteria.add(criteria);
  return criteria;
}
origin: macrozheng/mall

@Override
public int updatePermission(Long roleId, List<Long> permissionIds) {
  //先删除原有关系
  UmsRolePermissionRelationExample example=new UmsRolePermissionRelationExample();
  example.createCriteria().andRoleIdEqualTo(roleId);
  rolePermissionRelationMapper.deleteByExample(example);
  //批量插入新关系
  List<UmsRolePermissionRelation> relationList = new ArrayList<>();
  for (Long permissionId : permissionIds) {
    UmsRolePermissionRelation relation = new UmsRolePermissionRelation();
    relation.setRoleId(roleId);
    relation.setPermissionId(permissionId);
    relationList.add(relation);
  }
  return rolePermissionRelationDao.insertList(relationList);
}
origin: macrozheng/mall

public Criteria createCriteria() {
  Criteria criteria = createCriteriaInternal();
  if (oredCriteria.size() == 0) {
    oredCriteria.add(criteria);
  }
  return criteria;
}
com.macro.mall.modelUmsRolePermissionRelationExample

Most used methods

  • <init>
  • createCriteria
  • createCriteriaInternal

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getContentResolver (Context)
  • getResourceAsStream (ClassLoader)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now