Package org.hibernate

Examples of org.hibernate.Criteria.createAlias()


    {
        Criteria criteria = createCriteria();
        criteria.createAlias(VirtualMachine.VIRTUAL_MACHINE_TEMPLATE_PROPERTY, "template");
        criteria.createAlias(VirtualMachine.VIRTUAL_IMAGE_CONVERSION_PROPERTY, "conversion",
            JoinFragment.LEFT_OUTER_JOIN);
        criteria.createAlias("conversion."
            + VirtualImageConversion.VIRTUAL_MACHINE_TEMPLATE_PROPERTY, "masterconversion",
            JoinFragment.LEFT_OUTER_JOIN);
        criteria.add(Restrictions.and(Restrictions.isNull(VirtualMachine.HYPERVISOR_PROPERTY),
            Restrictions.or(Restrictions.or(Restrictions.and(Restrictions
                .isNull(VirtualMachine.VIRTUAL_IMAGE_CONVERSION_PROPERTY), Restrictions.in(
View Full Code Here


        {
            case USED:
                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl");
                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool");
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device");
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier");
                crit.createAlias("vl." + RasdManagement.RASD_PROPERTY, "rasd");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_DATACENTER_PROPERTY, "vdc");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_APPLIANCE_PROPERTY, "vapp");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_MACHINE_PROPERTY, "vm");
                break;
View Full Code Here

            case USED:
                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl");
                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool");
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device");
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier");
                crit.createAlias("vl." + RasdManagement.RASD_PROPERTY, "rasd");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_DATACENTER_PROPERTY, "vdc");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_APPLIANCE_PROPERTY, "vapp");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_MACHINE_PROPERTY, "vm");
                break;
            case NOTUSED:
View Full Code Here

                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl");
                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool");
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device");
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier");
                crit.createAlias("vl." + RasdManagement.RASD_PROPERTY, "rasd");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_DATACENTER_PROPERTY, "vdc");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_APPLIANCE_PROPERTY, "vapp");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_MACHINE_PROPERTY, "vm");
                break;
            case NOTUSED:
            case ALL:
View Full Code Here

                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool");
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device");
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier");
                crit.createAlias("vl." + RasdManagement.RASD_PROPERTY, "rasd");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_DATACENTER_PROPERTY, "vdc");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_APPLIANCE_PROPERTY, "vapp");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_MACHINE_PROPERTY, "vm");
                break;
            case NOTUSED:
            case ALL:
                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl",
View Full Code Here

                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device");
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier");
                crit.createAlias("vl." + RasdManagement.RASD_PROPERTY, "rasd");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_DATACENTER_PROPERTY, "vdc");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_APPLIANCE_PROPERTY, "vapp");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_MACHINE_PROPERTY, "vm");
                break;
            case NOTUSED:
            case ALL:
                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl",
                    JoinFragment.LEFT_OUTER_JOIN);
View Full Code Here

                crit.createAlias("vl." + RasdManagement.VIRTUAL_APPLIANCE_PROPERTY, "vapp");
                crit.createAlias("vl." + RasdManagement.VIRTUAL_MACHINE_PROPERTY, "vm");
                break;
            case NOTUSED:
            case ALL:
                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device",
                    JoinFragment.LEFT_OUTER_JOIN);
View Full Code Here

                break;
            case NOTUSED:
            case ALL:
                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier",
                    JoinFragment.LEFT_OUTER_JOIN);
View Full Code Here

            case ALL:
                crit.createAlias(VirtualMachineTemplate.VOLUME_PROPERTY, "vl",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("vl." + RasdManagement.RASD_PROPERTY, "rasd",
                    JoinFragment.LEFT_OUTER_JOIN);
View Full Code Here

                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("vl." + VolumeManagement.STORAGE_POOL_PROPERTY, "pool",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("pool." + StoragePool.DEVICE_PROPERTY, "device",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("pool." + StoragePool.TIER_PROPERTY, "tier",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("vl." + RasdManagement.RASD_PROPERTY, "rasd",
                    JoinFragment.LEFT_OUTER_JOIN);
                crit.createAlias("vl." + RasdManagement.VIRTUAL_DATACENTER_PROPERTY, "vdc",
                    JoinFragment.LEFT_OUTER_JOIN);
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.