@Override
 @Deprecated
 public Criteria createCriteria(
     String associationPath, String alias, int joinType, Criterion withClause)
     throws HibernateException {
   return createCriteria(associationPath, alias, JoinType.parse(joinType), withClause);
 }
 @Override
 @Deprecated
 public Criteria createCriteria(
     final String associationPath, final String alias, final int joinType)
     throws HibernateException {
   return createCriteria(associationPath, alias, JoinType.parse(joinType));
 }
 /**
  * Deprecated!
  *
  * @param associationPath The association path
  * @param joinType The type of join to use
  * @return the newly created, nested DetachedCriteria
  * @deprecated use {@link #createCriteria(String, JoinType)}
  */
 @Deprecated
 public DetachedCriteria createCriteria(String associationPath, int joinType) {
   return createCriteria(associationPath, JoinType.parse(joinType));
 }
 /**
  * Deprecated!
  *
  * @param associationPath The association path
  * @param alias The alias to associate with this "join".
  * @param joinType The type of join to use
  * @param withClause The additional join restriction
  * @return the newly created, nested DetachedCriteria
  * @deprecated use {@link #createCriteria(String, String, JoinType, Criterion)}
  */
 @Deprecated
 public DetachedCriteria createCriteria(
     String associationPath, String alias, int joinType, Criterion withClause) {
   return createCriteria(associationPath, alias, JoinType.parse(joinType), withClause);
 }
 /**
  * Deprecated!
  *
  * @param associationPath The association path
  * @param alias The alias to apply to that association path
  * @param joinType The type of join to use
  * @return {@code this}, for method chaining
  * @deprecated use {@link #createAlias(String, String, JoinType)}
  */
 @Deprecated
 public DetachedCriteria createAlias(String associationPath, String alias, int joinType) {
   return createAlias(associationPath, alias, JoinType.parse(joinType));
 }