mirror of https://github.com/apache/openjpa.git
remove obsolete commented out code and modifiers
This commit is contained in:
parent
7a75ccd80a
commit
9458d1720b
|
@ -39,9 +39,6 @@ import javax.persistence.Temporal;
|
|||
import javax.persistence.TemporalType;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
//import org.apache.geronimo.samples.daytrader.util.Log;
|
||||
//import org.apache.geronimo.samples.daytrader.util.TradeConfig;
|
||||
|
||||
@Entity(name = "accountejb")
|
||||
@Table(name = "accountejb")
|
||||
@NamedQueries( {
|
||||
|
|
|
@ -25,9 +25,6 @@ import javax.persistence.NamedQuery;
|
|||
import javax.persistence.OneToOne;
|
||||
import javax.persistence.Table;
|
||||
|
||||
// import org.apache.geronimo.samples.daytrader.util.Log;
|
||||
// import org.apache.geronimo.samples.daytrader.util.TradeConfig;
|
||||
|
||||
@Entity(name = "accountprofileejb")
|
||||
@Table(name = "accountprofileejb")
|
||||
@NamedQueries( {
|
||||
|
|
|
@ -274,24 +274,6 @@ public abstract class MapTableFieldStrategy
|
|||
|
||||
return;
|
||||
}
|
||||
/*
|
||||
// this is necessary to support openjpa 3 mappings, which didn't
|
||||
// differentiate between secondary table joins and relations built
|
||||
// around an inverse key: check to see if we're mapped as a secondary
|
||||
// table join but we're in the table of the related type, and if so
|
||||
// switch our join mapping info to our value mapping info
|
||||
String tableName = field.getMappingInfo().getTableName();
|
||||
Table table = field.getTypeMapping().getTable();
|
||||
ValueMappingInfo vinfo = field.getValueInfo();
|
||||
if (tableName != null && table != null
|
||||
&& (tableName.equalsIgnoreCase(table.getName())
|
||||
|| tableName.equalsIgnoreCase(table.getFullName()))) {
|
||||
vinfo.setJoinDirection(MappingInfo.JOIN_INVERSE);
|
||||
vinfo.setColumns(field.getMappingInfo().getColumns());
|
||||
field.getMappingInfo().setTableName(null);
|
||||
field.getMappingInfo().setColumns(null);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
protected boolean isTypeUnjoinedSubclass(ValueMapping mapped) {
|
||||
|
|
|
@ -167,10 +167,6 @@ public class AnnoTest1 {
|
|||
this.pk = new Long(pk);
|
||||
}
|
||||
|
||||
// public AnnoTest1(Long pk) {
|
||||
// this.pk = pk;
|
||||
// }
|
||||
|
||||
public void setPk(Long val) {
|
||||
pk = val;
|
||||
}
|
||||
|
|
|
@ -275,7 +275,7 @@ public class TestStatistics extends SingleEMFTestCase {
|
|||
/**
|
||||
* Assert that the passed in hit/eviction/read/write match those values collected by stats.
|
||||
*/
|
||||
private static final void assertion(String cls, int hit, int read, int write, CacheStatistics stats) {
|
||||
private static void assertion(String cls, int hit, int read, int write, CacheStatistics stats) {
|
||||
if (cls == null) {
|
||||
throw new RuntimeException("invalid assertion. Null class");
|
||||
} else {
|
||||
|
|
|
@ -58,56 +58,4 @@ public class AppIdSubC
|
|||
return this.stringFieldC;
|
||||
}
|
||||
|
||||
/*
|
||||
public static class ID
|
||||
extends AppIdSubB.ID
|
||||
{
|
||||
private long pk1c;
|
||||
private String pk2c;
|
||||
|
||||
|
||||
public ID ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
|
||||
public ID (String str)
|
||||
{
|
||||
super ();
|
||||
fromString (str);
|
||||
}
|
||||
|
||||
|
||||
public int hashCode ()
|
||||
{
|
||||
return (int)((super.hashCode () + pk1c
|
||||
+ (pk2c == null ? 0 : pk2c.hashCode ())) % Integer.MAX_VALUE);
|
||||
}
|
||||
|
||||
|
||||
public boolean equals (Object other)
|
||||
{
|
||||
return super.equals (other)
|
||||
&& ((ID)other).pk1c == pk1c
|
||||
&& ((ID)other).pk2c == null ? pk2c == null
|
||||
: ((ID)other).pk2c.equals (pk2c);
|
||||
}
|
||||
|
||||
|
||||
public String toString ()
|
||||
{
|
||||
return super.toString () + DELIMITER + pk1c + DELIMITER + pk2c;
|
||||
}
|
||||
|
||||
|
||||
StringTokenizer fromString (String idString)
|
||||
{
|
||||
StringTokenizer tok = super.fromString (idString);
|
||||
pk1c = new Long (tok.nextToken ()).longValue ();
|
||||
pk2c = tok.nextToken ();
|
||||
return tok; // return the tokenizer for subclasses to use
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
|
@ -40,21 +40,4 @@ public class AppIdSubE
|
|||
return this.stringFieldE;
|
||||
}
|
||||
|
||||
/*
|
||||
public static class ID
|
||||
extends AppIdSubD.ID
|
||||
{
|
||||
public ID ()
|
||||
{
|
||||
super ();
|
||||
}
|
||||
|
||||
|
||||
public ID (String str)
|
||||
{
|
||||
super ();
|
||||
fromString (str);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue