About int

131-140 of 200Refresh
Issue
2

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
Issue
2

Best practise loading big data

(); MyStepBlockCollection sbc = new MyStepBlockCollection(); sbc.Id = 1; em.persist(sbc); for (int iStepBlock = 0 ... (stepBlock); for (int iStep = 0; iStep < 100; iStep++) { MyStep step = new MyStep(); stepBlock.steps.add ... (EntityManager em) {         int valueCount = 0;          em.getTransaction().begin
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
JPA Doc
2

Column.precision

Annotation Element javax.persistence.Column int precision (Optional) The precision for a decimal (exact numeric) column. (Applies only if a decimal column is used.) Value must be set by developer if used when generating the DDL for the column. Default value: 0 Since: JPA 1.0
JDO Doc
2

Column.scale

Annotation Element javax.jdo.annotations.Column int scale Scale for the column when handling floating point values. Returns: the scale for the column when handling floating point values Default value: -1 Since: JDO 2.1