Home » Search

About int

111-120 of 200Refresh
Forum
3

Should derived fields of an EmbeddedId be manually maintained by app code?

protected String id = "1"; @SuppressWarnings("unused") // used by JPA @Version private int version ... ; } int endCnt = lastInstanceInMap + numberToGen; int startCnt = lastInstanceInMap; long ... )); } public Integer getLastMapInstanceKey() { return lastInstanceInMap; } public int
Forum
3

@OneToMany(fetch = FetchType.LAZY) list is always null

") private int id; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List children; public int getId() { return id; } public void setId(int id ... { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "b") private int id
Forum
3

Replicated cluster recovery

=admin   and thread stack dump: SocketInputStream.socketRead0(FileDescriptor, byte[], int, int, int) line: not available [native method] SocketInputStream.read(byte[], int, int) line: 129 BufferedInputStream.fill() line: 218 BufferedInputStream.read1(byte[], int, int) line: 258
Issue
3

Threaded Test - Failed to commit transaction: Unexpected internal exception

/testMultiThreadedEntryPipe.odb");         try {             int msgs = 1000;             ArrayList runnables = new ArrayList();             for(int i = 1; i < 6; i++)                 runnables.add(new ObjectDbProducer("p" + i, emf, msgs));             for(int i = 1; i < 6; i
Forum
2

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

=admin;password=password");    for (int i = 0; i < 100; i++) {         boolean flag = true ... ) {   if (WRITE_DATA_TO_DATABASE) {    em.getTransaction().begin();    for (int i = 0; i < 1000; i ... ("SELECT p FROM Point p",     Point.class);   List results = query.getResultList();   int
Forum
2

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

@Version private int version; @Basic protected java.lang.Integer lastInstanceInMap; protected ... ) { lastInstanceInMap = 0; } int endCnt = lastInstanceInMap + numberToGen; int startCnt = lastInstanceInMap ... ; } public int getNumberOfMapItems(EntityManager em) { Query q = em .createNamedQuery
Forum
2

Performance in large transactions

; public class TransactionsPerformance { static int steps = 10000; public static void main ... );   for (int m = 0; m < steps; m++) {    TypedQuery q = em.createQuery("SELECT m FROM MyEntity ... ();   myEntity = em.merge(myEntity);   em.getTransaction().commit();   em.close();   for (int m
JDO Doc
2

allocate(additional)

Method javax.jdo.datastore.Sequence void allocate(   int additional ) Provides a hint to the implementation that the application will need additional sequence value objects in short order. There is no externally visible behavior of this method. It is used to potentially improve the efficiency
JDO Doc
2

Column.length

Annotation Element javax.jdo.annotations.Column int length Maximum length of data stored in this column. Returns: the maximum length of data stored in this column Default value: -1 Since: JDO 2.1
JPA Doc
2

Column.length

Annotation Element javax.persistence.Column int length (Optional) The column length. (Applies only if a string-valued column is used.) Default value: 255 Since: JPA 1.0