Package org.sonar.api.database

Examples of org.sonar.api.database.DatabaseSession.createQuery()


  protected final Rule doFindById(int ruleId) {
    DatabaseSession session = sessionFactory.getSession();
    return session.getSingleResult(
      session.createQuery("FROM " + Rule.class.getSimpleName() + " r WHERE and r.status<>:status")
        .setParameter("id", ruleId)
        .setParameter("status", Rule.STATUS_REMOVED
View Full Code Here

Copyright © 2015 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