Package org.springframework.orm.hibernate3

Examples of org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException


        super(CraningCost.class);
    }

    public final CraningCost findByRuleId(final String ruleId) {
        return (CraningCost) getHibernateTemplate().execute(
                new HibernateCallback() {

                    @SuppressWarnings("unchecked")
                    public Object doInHibernate(final Session session) {
                        List<CraningCost> list = session.createCriteria(
                                CraningCost.class).add(
View Full Code Here


     * @see no.ugland.utransprod.dao.DeviationStatusDAO#findAllNotForManager()
     */
    @SuppressWarnings("unchecked")
    public final List<DeviationStatus> findAllNotForManager() {
        return (List<DeviationStatus>) getHibernateTemplate().execute(
                new HibernateCallback() {

                    public Object doInHibernate(final Session session) {
                        return session.createCriteria(DeviationStatus.class)
                                .add(
                                        Restrictions.or(Restrictions
View Full Code Here

    }

    public final Integer countUsedByDeviation(
            final DeviationStatus deviationStatus) {
        return (Integer) getHibernateTemplate().execute(
                new HibernateCallback() {

                    public Object doInHibernate(final Session session) {
                        String sql = "select count(deviation.deviationId) "
                                + "       from Deviation deviation"
                                + "       where deviation.deviationStatus=:deviationStatus";
View Full Code Here

                });
    }

  public List<DeviationStatus> findAllForDeviation() {
     return (List<DeviationStatus>) getHibernateTemplate().execute(
                  new HibernateCallback() {

                      public Object doInHibernate(final Session session) {
                          return session.createCriteria(DeviationStatus.class)
                                  .add(
                                          Restrictions.eq("forDeviation", Integer.valueOf(1)))
View Full Code Here

                  });
  }

  public Collection<DeviationStatus> findAllNotForManagerForAccident() {
    return (List<DeviationStatus>) getHibernateTemplate().execute(
                new HibernateCallback() {

                    public Object doInHibernate(final Session session) {
                        return session.createCriteria(DeviationStatus.class)
                                .add(
                                        Restrictions.or(Restrictions
View Full Code Here

                });
  }

  public Collection<DeviationStatus> findAllNotForManagerForDeviation() {
    return (List<DeviationStatus>) getHibernateTemplate().execute(
                new HibernateCallback() {

                    public Object doInHibernate(final Session session) {
                        return session.createCriteria(DeviationStatus.class)
                                .add(
                                        Restrictions.or(Restrictions
View Full Code Here

                });
  }

  public Collection<DeviationStatus> findAllForAccident() {
     return (List<DeviationStatus>) getHibernateTemplate().execute(
                  new HibernateCallback() {

                      public Object doInHibernate(final Session session) {
                          return session.createCriteria(DeviationStatus.class)
                                  .add(
                                          Restrictions.eq("forAccident", Integer.valueOf(1)))
View Full Code Here

   * @see no.ugland.utransprod.dao.GulvsponPackageVDAO#findByOrderNr(java.lang.String)
   */
  @SuppressWarnings("unchecked")
  public List<PackableListItem> findByOrderNr(final String orderNr) {
    return (List<PackableListItem>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(Session session)
              throws HibernateException {
            return session.createCriteria(GulvsponPackageV.class)
                .add(Restrictions.eq("orderNr", orderNr))
View Full Code Here

   * @see no.ugland.utransprod.dao.GulvsponPackageVDAO#findByCustomerNr(java.lang.Integer)
   */
  @SuppressWarnings("unchecked")
  public List<PackableListItem> findByCustomerNr(final Integer customerNr) {
    return (List<PackableListItem>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(Session session)
              throws HibernateException {
            return session.createCriteria(GulvsponPackageV.class)
                .add(Restrictions.eq("customerNr", customerNr))
View Full Code Here

  @SuppressWarnings("unchecked")
  public List<PackableListItem> findByCustomerNrProductAreaGroup(
      final Integer customerNr, final ProductAreaGroup productAreaGroup) {
    return (List<PackableListItem>) getHibernateTemplate().execute(
        new HibernateCallback() {

          public Object doInHibernate(Session session)
              throws HibernateException {
            Criteria criteria=  session.createCriteria(GulvsponPackageV.class)
                .add(Restrictions.eq("customerNr", customerNr));
View Full Code Here

TOP

Related Classes of org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException

Copyright © 2018 www.massapicom. 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 coftware#gmail.com.