Hibernate ORM ProjectionList - 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 ProjectionList class.

This code example shows how to use the following methods: add
     */ 
    public Criteria getCriteria(final Session hibernateSession)
    { 
        Criteria criteria = hibernateSession.createCriteria(DomainGroup.class);
        ProjectionList fields = Projections.projectionList();
        fields.add(getColumn("id"));
        fields.add(getColumn("description"));
        fields.add(getColumn("name"));
        fields.add(getColumn("shortName"));
        fields.add(Projections.property("publicGroup").as("isPublic"));
        fields.add(getColumn("updatesCount"));
        fields.add(getColumn("followersCount"));
        fields.add(getColumn("dateAdded"));
        fields.add(getColumn("avatarId"));
        fields.add(getColumn("avatarCropSize"));
        fields.add(getColumn("avatarCropX"));
        fields.add(getColumn("avatarCropY"));
        fields.add(getColumn("bannerId"));
        fields.add(getColumn("overview"));
        fields.add(getColumn("commentable"));

7
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods: add
     */ 
    public Criteria getCriteria(final Session hibernateSession)
    { 
        Criteria criteria = hibernateSession.createCriteria(Person.class);
        ProjectionList fields = Projections.projectionList();
        fields.add(getColumn("id"));
        fields.add(getColumn("dateAdded"));
        fields.add(getColumn("accountId"));
        fields.add(getColumn("openSocialId"));
        fields.add(getColumn("avatarId"));
        fields.add(getColumn("avatarCropX"));
        fields.add(getColumn("avatarCropY"));
        fields.add(getColumn("avatarCropSize"));
        fields.add(getColumn("lastName"));
        fields.add(getColumn("displayNameSuffix"));
        fields.add(getColumn("displayName"));
        fields.add(getColumn("preferredName"));
        fields.add(getColumn("jobDescription"));
        fields.add(getColumn("title"));
        fields.add(getColumn("overview"));

7
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Hibernate ORM ProjectionList Methods: