Hibernate ORM JoinType - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Hibernate ORM JoinType class.

This code example shows how to use the following methods:add, createCriteria
    } 
 
    @Override 
    public void enhanceCriteria(Criteria ongoingCriteria) {
        if (hasTerms) {
            final Criteria newSearchCriteria = ongoingCriteria.createCriteria("categories");
 
            if (!inclusionTerms.isEmpty()) {
                newSearchCriteria.add(Restrictions.in("term", inclusionTerms));
            } 
        } 
    } 
 
    private static int readTerm(String searchString, StringBuilder builder, int currentCharIndex) {
        int charIndex = currentCharIndex;
        boolean isEscaped = false;
 
        do { 
            final char nextChar = searchString.charAt(charIndex);
 
5
CodeRank
This code example shows how to use the following methods:createCriteria
    @Override 
    public OrderingCriteria createCriteria(final String arg0, final String arg1, final int arg2) throws HibernateException {
 
        OrderingCriteria orderingCriteria = subCriteriaByAlias.get(arg1);
        if (orderingCriteria == null) {
            orderingCriteria = new PaginatingCriteria<T>(mainCriteria.createCriteria(arg0, arg1, arg2), cloneCriteria.createCriteria(arg0, arg1, arg2), subCriteriaByAlias);
            subCriteriaByAlias.put(arg1, orderingCriteria);
        } 
        return orderingCriteria;
    } 
 
    @Override 
    public OrderingCriteria setResultTransformer(final ResultTransformer resultTransformer) {
        mainCriteria.setResultTransformer(resultTransformer);
        cloneCriteria.setResultTransformer(resultTransformer);
        return this;
    } 
 
    @Override 
    public OrderingCriteria setMaxResults(final int maxResults) {
4
CodeRank
This code example shows how to use the following methods:createCriteria
This code example shows how to use the following methods:hashCode
    public int hashCode() { 
        final int prime = 31;
        int result = 1;
        result = prime * result + ((alias == null) ? 0 : alias.hashCode());
        result = prime * result + ((assocationPath == null) ? 0 : assocationPath.hashCode());
        result = prime * result + ((joinType == null) ? 0 : joinType.hashCode());
        return result;
    } 
 
    @Override 
    public boolean equals(Object obj) { 
        if (this == obj)
            return true; 
        if (obj == null) 
            return false; 
        if (getClass() != obj.getClass())
            return false; 
        SpecificAlias other = (SpecificAlias) obj;
        if (alias == null) {
            if (other.alias != null)
3
CodeRank
See Code Examples for Hibernate ORM JoinType Methods: