- compareTo()/Comparable<T> was used back in the TDGP times and is no longer needed
- value first, then variable on comparison to avoid accidently assignments
- updated jar(s)
*/
@Entity (name = "cellphone_numbers")
@Table (name = "cellphone_numbers")
-public class CellphoneNumber implements DialableCellphoneNumber, Comparable<DialableCellphoneNumber> {
+public class CellphoneNumber implements DialableCellphoneNumber {
/**
* Serial number
public CellphoneNumber () {
}
- @Override
- public int compareTo (final DialableCellphoneNumber dialableCellphoneNumber) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
- }
-
@Override
public void copyAll (final DialableCellphoneNumber sourceNumber) {
// Copy all
@Override
public boolean equals (final Object object) {
- if (object == null) {
+ if (null == object) {
return false;
} else if (this.getClass() != object.getClass()) {
return false;
*/
@Entity (name = "fax_numbers")
@Table (name = "fax_numbers")
-public class FaxNumber implements DialableFaxNumber, Comparable<DialableFaxNumber> {
+public class FaxNumber implements DialableFaxNumber {
/**
* Serial number
public FaxNumber () {
}
- @Override
- public int compareTo (final DialableFaxNumber dialableFaxNumber) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
- }
-
@Override
public void copyAll (final DialableFaxNumber sourceNumber) {
// Copy all
@Override
public boolean equals (final Object object) {
- if (object == null) {
+ if (null == object) {
return false;
} else if (this.getClass() != object.getClass()) {
return false;
*/
@Entity (name = "phone_numbers")
@Table (name = "phone_numbers")
-public class LandLineNumber implements DialableLandLineNumber, Comparable<DialableLandLineNumber> {
+public class LandLineNumber implements DialableLandLineNumber {
/**
* Serial number
public LandLineNumber () {
}
- @Override
- public int compareTo (final DialableLandLineNumber dialableNumber) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
- }
-
@Override
public void copyAll (final DialableLandLineNumber sourceNumber) {
// Copy all
@Override
public boolean equals (final Object object) {
- if (object == null) {
+ if (null == object) {
return false;
} else if (this.getClass() != object.getClass()) {
return false;
@NamedQueries (
@NamedQuery (name = "AllSmsProvider", query = "SELECT p FROM cellphone_provider AS p ORDER BY p.providerId ASC")
)
-public class CellphoneProvider implements SmsProvider, Comparable<SmsProvider> {
+public class CellphoneProvider implements SmsProvider {
/**
* Serial number
public CellphoneProvider () {
}
- @Override
- public int compareTo (final SmsProvider provider) {
- throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
- }
-
@Override
public boolean equals (final Object object) {
- if (object == null) {
+ if (null == object) {
return false;
} else if (this.getClass() != object.getClass()) {
return false;