Codota Logo
UmsRolePermissionRelationExample
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
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

  • Making http post requests using okhttp
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now