Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name="domain_vlan_map")
@Table(name = "domain_vlan_map")
public class DomainVlanMapVO implements InternalIdentity {

@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name="host_gpu_groups")
@Table(name = "host_gpu_groups")
public class HostGpuGroupsVO implements InternalIdentity {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
Expand Down
2 changes: 1 addition & 1 deletion engine/schema/src/main/java/com/cloud/gpu/VGPUTypesVO.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name="vgpu_types")
@Table(name = "vgpu_types")
public class VGPUTypesVO implements InternalIdentity {
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import com.cloud.network.rules.HealthCheckPolicy;

@Entity
@Table(name = ("load_balancer_healthcheck_policies"))
@Table(name = "load_balancer_healthcheck_policies")
@PrimaryKeyJoinColumn(name = "load_balancer_id", referencedColumnName = "id")
public class LBHealthCheckPolicyVO implements HealthCheckPolicy {
@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import com.cloud.utils.db.GenericDao;

@Entity
@Table(name = ("user_ipv6_address"))
@Table(name = "user_ipv6_address")
public class UserIpv6AddressVO implements UserIpv6Address {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import com.cloud.utils.db.Encrypt;

@Entity
@Table(name = ("vpn_users"))
@Table(name = "vpn_users")
public class VpnUserVO implements VpnUser {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("autoscale_policy_condition_map"))
@Table(name = "autoscale_policy_condition_map")
public class AutoScalePolicyConditionMapVO implements InternalIdentity {

@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("autoscale_vmgroup_policy_map"))
@Table(name = "autoscale_vmgroup_policy_map")
public class AutoScaleVmGroupPolicyMapVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("autoscale_vmgroup_vm_map"))
@Table(name = "autoscale_vmgroup_vm_map")
public class AutoScaleVmGroupVmMapVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("firewall_rules_cidrs"))
@Table(name = "firewall_rules_cidrs")
public class FirewallRulesCidrsVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import javax.persistence.Table;

@Entity
@Table(name = ("firewall_rules_dcidrs"))
@Table(name = "firewall_rules_dcidrs")
public class FirewallRulesDestCidrsVO implements InternalIdentity{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
*
*/
@Entity
@Table(name = ("user_ip_address"))
@Table(name = "user_ip_address")
public class IPAddressVO implements IpAddress {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("inline_load_balancer_nic_map"))
@Table(name = "inline_load_balancer_nic_map")
public class InlineLoadBalancerNicMapVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import com.cloud.utils.Pair;

@Entity
@Table(name = ("load_balancer_stickiness_policies"))
@Table(name = "load_balancer_stickiness_policies")
@PrimaryKeyJoinColumn(name = "load_balancer_id", referencedColumnName = "id")
public class LBStickinessPolicyVO implements StickinessPolicy {
@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("load_balancer_vm_map"))
@Table(name = "load_balancer_vm_map")
public class LoadBalancerVMMapVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
*
*/
@Entity
@Table(name = ("load_balancing_rules"))
@Table(name = "load_balancing_rules")
@DiscriminatorValue(value = "LoadBalancing")
@PrimaryKeyJoinColumn(name = "id")
public class LoadBalancerVO extends FirewallRuleVO implements LoadBalancer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("network_rule_config"))
@Table(name = "network_rule_config")
public class NetworkRuleConfigVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.UUID;

@Entity
@Table(name = ("remote_access_vpn"))
@Table(name = "remote_access_vpn")
public class RemoteAccessVpnVO implements RemoteAccessVpn {
@Column(name = "account_id")
private long accountId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@


@Entity
@Table(name = ("s2s_customer_gateway"))
@Table(name = "s2s_customer_gateway")
public class Site2SiteCustomerGatewayVO implements Site2SiteCustomerGateway {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@


@Entity
@Table(name = ("s2s_vpn_connection"))
@Table(name = "s2s_vpn_connection")
public class Site2SiteVpnConnectionVO implements Site2SiteVpnConnection, InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@


@Entity
@Table(name = ("s2s_vpn_gateway"))
@Table(name = "s2s_vpn_gateway")
public class Site2SiteVpnGatewayVO implements Site2SiteVpnGateway {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import com.cloud.utils.db.GenericDao;

@Entity
@Table(name = ("ovs_providers"))
@Table(name = "ovs_providers")
public class OvsProviderVO implements OvsProvider {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import com.cloud.utils.db.GenericDao;

@Entity
@Table(name = ("virtual_router_providers"))
@Table(name = "virtual_router_providers")
public class VirtualRouterProviderVO implements VirtualRouterProvider {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import com.cloud.utils.net.Ip;

@Entity
@Table(name = ("port_forwarding_rules"))
@Table(name = "port_forwarding_rules")
@DiscriminatorValue(value = "PortForwarding")
@PrimaryKeyJoinColumn(name = "id")
public class PortForwardingRuleVO extends FirewallRuleVO implements PortForwardingRule {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import javax.persistence.Table;

@Entity
@Table(name = ("security_group_rule"))
@Table(name = "security_group_rule")
public class SecurityGroupRuleVO implements SecurityRule {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import com.cloud.utils.db.JoinType;

@Entity
@Table(name = ("security_group"))
@Table(name = "security_group")
@JoinType(type = "left")
@SecondaryTable(name = "security_group_rule", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "id", referencedColumnName = "security_group_id")})
public class SecurityGroupRulesVO implements SecurityGroupRules {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import com.cloud.vm.VirtualMachine.State;

@Entity
@Table(name = ("security_group_vm_map"))
@Table(name = "security_group_vm_map")
@SecondaryTables({@SecondaryTable(name = "nics", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "instance_id", referencedColumnName = "instance_id")}),
@SecondaryTable(name = "vm_instance", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "instance_id", referencedColumnName = "id")}),
@SecondaryTable(name = "security_group", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "security_group_id", referencedColumnName = "id")})})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import javax.persistence.Table;

@Entity
@Table(name = ("security_group"))
@Table(name = "security_group")
public class SecurityGroupVO implements SecurityGroup {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("instance_group_vm_map"))
@Table(name = "instance_group_vm_map")
@SecondaryTables({@SecondaryTable(name = "user_vm", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "instance_id", referencedColumnName = "id")}),
@SecondaryTable(name = "instance_group", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "group_id", referencedColumnName = "id")})})
public class InstanceGroupVMMapVO implements InternalIdentity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("affinity_group_vm_map"))
@Table(name = "affinity_group_vm_map")
public class AffinityGroupVMMapVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import org.apache.cloudstack.acl.ControlledEntity;

@Entity
@Table(name = ("affinity_group"))
@Table(name = "affinity_group")
public class AffinityGroupVO implements AffinityGroup {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*
*/
@Entity
@Table(name = ("load_balancing_rules"))
@Table(name = "load_balancing_rules")
@DiscriminatorValue(value = "LoadBalancing")
@PrimaryKeyJoinColumn(name = "id")
public class ApplicationLoadBalancerRuleVO extends FirewallRuleVO implements ApplicationLoadBalancerRule {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("global_load_balancer_lb_rule_map"))
@Table(name = "global_load_balancer_lb_rule_map")
public class GlobalLoadBalancerLbRuleMapVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import com.cloud.region.ha.GlobalLoadBalancerRule;

@Entity
@Table(name = ("global_load_balancing_rules"))
@Table(name = "global_load_balancing_rules")
public class GlobalLoadBalancerRuleVO implements GlobalLoadBalancerRule {

@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import com.cloud.utils.net.Ip;

@Entity
@Table(name = ("elastic_lb_vm_map"))
@Table(name = "elastic_lb_vm_map")
@SecondaryTables({@SecondaryTable(name = "user_ip_address", pkJoinColumns = {@PrimaryKeyJoinColumn(name = "ip_addr_id", referencedColumnName = "id")})})
public class ElasticLbVmMapVO implements InternalIdentity {
@Id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* By using the service package, CloudStack can choose the kind of NetScaler offering it wants to use.
*/
@Entity
@Table(name = " netscaler_servicepackages")
@Table(name = "netscaler_servicepackages")
public class NetScalerServicePackageVO implements InternalIdentity {


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("ovs_tunnel_interface"))
@Table(name = "ovs_tunnel_interface")
public class OvsTunnelInterfaceVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name = ("ovs_tunnel_network"))
@Table(name = "ovs_tunnel_network")
public class OvsTunnelNetworkVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import com.cloud.utils.db.GenericDao;

@Entity
@Table(name="async_job_view")
@Table(name = "async_job_view")
public class AsyncJobJoinVO extends BaseViewVO implements ControlledViewEntity { //InternalIdentity, Identity {
@Id
@Column(name = "id")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import org.apache.cloudstack.api.InternalIdentity;

@Entity
@Table(name="domain_view")
@Table(name = "domain_view")
public class DomainJoinVO extends BaseViewVO implements InternalIdentity, Identity {

@Id
Expand Down