Package org.hibernate.ejb

Examples of org.hibernate.ejb.HibernateEntityManager.merge()


        if (theme.getActive()) {
            YFTheme currentTheme = this.getCurrentTheme();
            if (currentTheme != null) {
                currentTheme.setActive(false);
                hem.merge(currentTheme);
            }
        }

        hem.persist(theme);
    }
View Full Code Here


        HibernateEntityManager hem = (HibernateEntityManager) em.getDelegate();
        try {
            YFTheme theme = hem.find(YFTheme.class, themeId);
            if (theme.getActive()) {
                theme.setActive(false);
                hem.merge(theme);
            } else {
                YFTheme currentTheme = this.getCurrentTheme();
                if (currentTheme != null) {
                    currentTheme.setActive(false);
                    hem.merge(currentTheme);
View Full Code Here

                hem.merge(theme);
            } else {
                YFTheme currentTheme = this.getCurrentTheme();
                if (currentTheme != null) {
                    currentTheme.setActive(false);
                    hem.merge(currentTheme);
                }

                theme.setActive(true);
                hem.merge(theme);
            }
View Full Code Here

                    currentTheme.setActive(false);
                    hem.merge(currentTheme);
                }

                theme.setActive(true);
                hem.merge(theme);
            }
        } catch (Exception e) {
        }
    }
View Full Code Here

        if (theme != null) {
            theme.setName(name);
            theme.setDescription(description);
            theme.setActive(isActive);

            hem.merge(theme);
        }
    }

    @Override
    public List<YFTheme> getMenuThemes(long menuId) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.