Skip to content

Commit

Permalink
renamed id classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Mar 24, 2014
1 parent 9dd80fd commit 8f2b1a1
Show file tree
Hide file tree
Showing 25 changed files with 48 additions and 123 deletions.
Expand Up @@ -16,7 +16,7 @@

package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.id.RAClobId;
import com.evolveum.midpoint.repo.sql.data.common.id.RAExtClobId;
import com.evolveum.midpoint.repo.sql.data.common.type.RAssignmentExtensionType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.apache.commons.codec.digest.DigestUtils;
Expand All @@ -29,7 +29,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAClobId.class)
@IdClass(RAExtClobId.class)
@Table(name = "m_assignment_ext_clob")
public class RAExtClob implements RAExtValue {

Expand Down
Expand Up @@ -16,7 +16,7 @@

package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.id.RADateId;
import com.evolveum.midpoint.repo.sql.data.common.id.RAExtDateId;
import com.evolveum.midpoint.repo.sql.data.common.type.RAssignmentExtensionType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -29,7 +29,7 @@
* @author lazyman
*/
@Entity
@IdClass(RADateId.class)
@IdClass(RAExtDateId.class)
@Table(name = "m_assignment_ext_date")
@org.hibernate.annotations.Table(appliesTo = "m_assignment_ext_date",
indexes = {@Index(name = "iAExtensionDate", columnNames = {"extensionType", "dateValue", "eName", "eType"})})
Expand Down
Expand Up @@ -16,7 +16,7 @@

package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.id.RALongId;
import com.evolveum.midpoint.repo.sql.data.common.id.RAExtLongId;
import com.evolveum.midpoint.repo.sql.data.common.type.RAssignmentExtensionType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -28,7 +28,7 @@
* @author lazyman
*/
@Entity
@IdClass(RALongId.class)
@IdClass(RAExtLongId.class)
@Table(name = "m_assignment_ext_long")
@org.hibernate.annotations.Table(appliesTo = "m_assignment_ext_long",
indexes = {@Index(name = "iAExtensionLong", columnNames = {"extensionType", "longValue", "eName", "eType"})})
Expand Down
Expand Up @@ -17,7 +17,7 @@
package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.prism.polystring.PolyString;
import com.evolveum.midpoint.repo.sql.data.common.id.RAPolyStringId;
import com.evolveum.midpoint.repo.sql.data.common.id.RAExtPolyStringId;
import com.evolveum.midpoint.repo.sql.data.common.type.RAssignmentExtensionType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -29,7 +29,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAPolyStringId.class)
@IdClass(RAExtPolyStringId.class)
@Table(name = "m_assignment_ext_poly")
@org.hibernate.annotations.Table(appliesTo = "m_assignment_ext_poly",
indexes = {@Index(name = "iAExtensionPolyString", columnNames = {"extensionType", "orig", "eName", "eType"})})
Expand Down
Expand Up @@ -17,7 +17,7 @@
package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.prism.PrismReferenceValue;
import com.evolveum.midpoint.repo.sql.data.common.id.RAReferenceId;
import com.evolveum.midpoint.repo.sql.data.common.id.RAExtReferenceId;
import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;
import com.evolveum.midpoint.repo.sql.data.common.type.RAssignmentExtensionType;
import com.evolveum.midpoint.repo.sql.util.ClassMapper;
Expand All @@ -31,7 +31,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAReferenceId.class)
@IdClass(RAExtReferenceId.class)
@Table(name = "m_assignment_ext_reference")
@org.hibernate.annotations.Table(appliesTo = "m_assignment_ext_reference",
indexes = {@Index(name = "iAExtensionReference", columnNames = {"extensionType", "targetoid", "eName", "eType"})})
Expand Down
Expand Up @@ -16,7 +16,7 @@

package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.id.RAStringId;
import com.evolveum.midpoint.repo.sql.data.common.id.RAExtStringId;
import com.evolveum.midpoint.repo.sql.data.common.type.RAssignmentExtensionType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -28,7 +28,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAStringId.class)
@IdClass(RAExtStringId.class)
@Table(name = "m_assignment_ext_string")
@org.hibernate.annotations.Table(appliesTo = "m_assignment_ext_string",
indexes = {@Index(name = "iAExtensionString", columnNames = {"extensionType", "stringValue", "eName", "eType"})})
Expand Down
Expand Up @@ -17,7 +17,7 @@
package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.RObject;
import com.evolveum.midpoint.repo.sql.data.common.id.RAnyClobId;
import com.evolveum.midpoint.repo.sql.data.common.id.ROExtClobId;
import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.apache.commons.codec.digest.DigestUtils;
Expand All @@ -30,7 +30,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAnyClobId.class)
@IdClass(ROExtClobId.class)
@Table(name = "m_object_ext_clob")
public class ROExtClob implements ROExtValue {

Expand Down
Expand Up @@ -17,7 +17,7 @@
package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.RObject;
import com.evolveum.midpoint.repo.sql.data.common.id.RAnyDateId;
import com.evolveum.midpoint.repo.sql.data.common.id.ROExtDateId;
import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -30,7 +30,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAnyDateId.class)
@IdClass(ROExtDateId.class)
@Table(name = "m_object_ext_date")
@org.hibernate.annotations.Table(appliesTo = "m_object_ext_date",
indexes = {@Index(name = "iExtensionDate", columnNames = {"ownerType", "dateValue", "eName", "eType"})})
Expand Down
Expand Up @@ -17,7 +17,7 @@
package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.RObject;
import com.evolveum.midpoint.repo.sql.data.common.id.RAnyLongId;
import com.evolveum.midpoint.repo.sql.data.common.id.ROExtLongId;
import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -29,7 +29,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAnyLongId.class)
@IdClass(ROExtLongId.class)
@Table(name = "m_object_ext_long")
@org.hibernate.annotations.Table(appliesTo = "m_object_ext_long",
indexes = {@Index(name = "iExtensionLong", columnNames = {"ownerType", "longValue", "eName", "eType"})})
Expand Down
Expand Up @@ -18,7 +18,7 @@

import com.evolveum.midpoint.prism.polystring.PolyString;
import com.evolveum.midpoint.repo.sql.data.common.RObject;
import com.evolveum.midpoint.repo.sql.data.common.id.RAnyPolyStringId;
import com.evolveum.midpoint.repo.sql.data.common.id.ROExtPolyStringId;
import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -30,7 +30,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAnyPolyStringId.class)
@IdClass(ROExtPolyStringId.class)
@Table(name = "m_object_ext_poly")
@org.hibernate.annotations.Table(appliesTo = "m_object_ext_poly",
indexes = {@Index(name = "iExtensionPolyString", columnNames = {"ownerType", "orig", "eName", "eType"})})
Expand Down
Expand Up @@ -18,7 +18,7 @@

import com.evolveum.midpoint.prism.PrismReferenceValue;
import com.evolveum.midpoint.repo.sql.data.common.RObject;
import com.evolveum.midpoint.repo.sql.data.common.id.RAnyReferenceId;
import com.evolveum.midpoint.repo.sql.data.common.id.ROExtReferenceId;
import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;
import com.evolveum.midpoint.repo.sql.util.ClassMapper;
import com.evolveum.midpoint.repo.sql.util.RUtil;
Expand All @@ -31,7 +31,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAnyReferenceId.class)
@IdClass(ROExtReferenceId.class)
@Table(name = "m_object_ext_reference")
@org.hibernate.annotations.Table(appliesTo = "m_object_ext_reference",
indexes = {@Index(name = "iExtensionReference", columnNames = {"ownerType", "targetoid", "eName", "eType"})})
Expand Down
Expand Up @@ -17,7 +17,7 @@
package com.evolveum.midpoint.repo.sql.data.common.any;

import com.evolveum.midpoint.repo.sql.data.common.RObject;
import com.evolveum.midpoint.repo.sql.data.common.id.RAnyStringId;
import com.evolveum.midpoint.repo.sql.data.common.id.ROExtStringId;
import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;
import com.evolveum.midpoint.repo.sql.util.RUtil;
import org.hibernate.annotations.ForeignKey;
Expand All @@ -29,7 +29,7 @@
* @author lazyman
*/
@Entity
@IdClass(RAnyStringId.class)
@IdClass(ROExtStringId.class)
@Table(name = "m_object_ext_string")
@org.hibernate.annotations.Table(appliesTo = "m_object_ext_string",
indexes = {@Index(name = "iExtensionString", columnNames = {"ownerType", "stringValue", "eName", "eType"})})
Expand Down
Expand Up @@ -16,14 +16,12 @@

package com.evolveum.midpoint.repo.sql.data.common.id;

import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;

import java.io.Serializable;

/**
* @author lazyman
*/
public class RAClobId implements Serializable {
public class RAExtClobId implements Serializable {

private String ownerOid;
private Short ownerId;
Expand Down Expand Up @@ -76,7 +74,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

RAClobId raClobId = (RAClobId) o;
RAExtClobId raClobId = (RAExtClobId) o;

if (checksum != null ? !checksum.equals(raClobId.checksum) : raClobId.checksum != null) return false;
if (name != null ? !name.equals(raClobId.name) : raClobId.name != null) return false;
Expand Down
Expand Up @@ -16,15 +16,13 @@

package com.evolveum.midpoint.repo.sql.data.common.id;

import com.evolveum.midpoint.repo.sql.data.common.other.RObjectType;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @author lazyman
*/
public class RADateId implements Serializable {
public class RAExtDateId implements Serializable {

private String ownerOid;
private Short ownerId;
Expand Down Expand Up @@ -77,7 +75,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

RADateId raDateId = (RADateId) o;
RAExtDateId raDateId = (RAExtDateId) o;

if (name != null ? !name.equals(raDateId.name) : raDateId.name != null) return false;
if (ownerId != null ? !ownerId.equals(raDateId.ownerId) : raDateId.ownerId != null) return false;
Expand Down
Expand Up @@ -21,7 +21,7 @@
/**
* @author lazyman
*/
public class RALongId implements Serializable {
public class RAExtLongId implements Serializable {

private String ownerOid;
private Short ownerId;
Expand Down Expand Up @@ -74,7 +74,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

RALongId raLongId = (RALongId) o;
RAExtLongId raLongId = (RAExtLongId) o;

if (name != null ? !name.equals(raLongId.name) : raLongId.name != null) return false;
if (ownerId != null ? !ownerId.equals(raLongId.ownerId) : raLongId.ownerId != null) return false;
Expand Down
Expand Up @@ -21,7 +21,7 @@
/**
* @author lazyman
*/
public class RAPolyStringId implements Serializable {
public class RAExtPolyStringId implements Serializable {

private String ownerOid;
private Short ownerId;
Expand Down Expand Up @@ -74,7 +74,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

RAPolyStringId that = (RAPolyStringId) o;
RAExtPolyStringId that = (RAExtPolyStringId) o;

if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (ownerId != null ? !ownerId.equals(that.ownerId) : that.ownerId != null) return false;
Expand Down
Expand Up @@ -21,7 +21,7 @@
/**
* @author lazyman
*/
public class RAReferenceId implements Serializable {
public class RAExtReferenceId implements Serializable {

private String ownerOid;
private Short ownerId;
Expand Down Expand Up @@ -74,7 +74,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

RAReferenceId that = (RAReferenceId) o;
RAExtReferenceId that = (RAExtReferenceId) o;

if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (ownerId != null ? !ownerId.equals(that.ownerId) : that.ownerId != null) return false;
Expand Down
Expand Up @@ -21,7 +21,7 @@
/**
* @author lazyman
*/
public class RAStringId implements Serializable {
public class RAExtStringId implements Serializable {

private String ownerOid;
private Short ownerId;
Expand Down Expand Up @@ -74,7 +74,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;

RAStringId that = (RAStringId) o;
RAExtStringId that = (RAExtStringId) o;

if (name != null ? !name.equals(that.name) : that.name != null) return false;
if (ownerId != null ? !ownerId.equals(that.ownerId) : that.ownerId != null) return false;
Expand Down

0 comments on commit 8f2b1a1

Please sign in to comment.