ObjectDB Database Search
51-100 of 102 resultsComposite Index error 328 = -4472890635861972890L; private int id; private int dyId; private long pwd; private String usrName; private Integer mail; private int access; private short programType; private Date regDate; private Date regEnd; private Date lastLogin; private String lastIp; private int flags; private String name; private String | |
Replicated cluster recovery[], 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 BufferedInputStream.read(byte[], int , int ) line: 317 CST(NTS).z( int , int ) line: 314 CST(NTS).y() line: 274 | |
Duplicate Entity class names causes Exception in Query int version; @Basic protected java.lang.Integer lastInstance; public void generateItems(EntityManager em, int howMany) { if (lastInstance == null) { lastInstance = 0; } int endCnt = lastInstance + howMany; int startCnt = lastInstance; while (endCnt startCnt) { startCnt++; Item item = new Item | |
Database size is much larger than expected (x2) I store images into objectdb. The schema is : ::=( , , , , ) ::=String ::=char ::= int ::=byte ... ; EntityManager em = emf.createEntityManager(); for ( int i = 0; i by ... .InheritanceType; public class URIReader { public static int read( int iNumber){ int i = 0; int | |
find() cost unreasonable time!) private int id; @ManyToOne @JoinColumn(name="parent") protected Nodes parent; @OneToMany(mappedBy ... getSons0() { System.out.printf("===========%n"); int iSum = 0; for ( int i=0;i 0 ... /timecost); } private static void getSons0() { System.out.printf("===========%n"); int iSum = 0; for ( int i=0;i | |
Error using query with MAX() function = "mySchema") public class TestEntity { @Id private int id; @Basic @Lob private String remark; @Basic @Temporal(value = TemporalType.TIMESTAMP) private Date changeDate; public int getId() { return id; } public void setId( int id) { this.id = id; } public String getRemark() { return remark; } public | |
Cascading makeTransient { private int fieldInt; private String fieldString; private HashMap fieldMap; private ArrayList ... ( int fieldInt){ this.fieldInt = fieldInt; this.fieldString = ""+fieldInt;   ... ); } public int getFieldInt() { return fieldInt; } public void setFieldInt( int fieldInt) {   | |
persisting object with long[][] arrays of array script - which takes about 50sec to complete on my mac. private static long[][] random2( int n){   ... .createEntityManager(); int n = 100_000;   ... ; } } and the test code took less than 1sec to complete: private static long[] random2( int n){   | |
Join performance in Objectdb; int entityCount = 160000;   ... ; em.getTransaction().begin(); for ( int i = 0; i ... ; EntityManager em = emf.createEntityManager(); int entityCount | |
Database(*.odb) file size on disk; public final class createAndDelete { static int idCounter = 1; public static void main(String[] args ... .setFlushMode(FlushModeType.AUTO); int objects = 1000; int loops = 3; for ( int iteration = 0; iteration | |
Bug: ClassCastException by retrieval class Node { @Id @GeneratedValue(strategy=GenerationType.IDENTITY) int id ... .toCharArray(); int iLen = ca.length; Character[] la = new Character[iLen]; for ( int ii = 0; ii | |
EntityManager refresh problem; private String fieldA; private int fieldB; public String ... = fieldA; } public int getFieldB() { return fieldB; } public void setFieldB( int | |
Queries are slow on a large database implements Message, LogItem, Comparable { private int Id; private int logTestRunId; private int logEntryId | |
How to avoid NULL values on Embedded entities int numero; @Basic(optional=false) private String ciudad;   ... String pais; @Basic(optional=false) private int cp; } And how to make | |
Performance and memory usage of queries.Persistence; import javax.persistence.Query; public class MemoryUsageOfQuerys { static int steps = 500000 ... ; .createEntityManagerFactory("objectdb:$objectdb/db/test.tmp;drop"); EntityManager em; for ( int i = 0; i | |
What algorithm in find() I test the time cost for find(), obtain a linear complexity with the following codes: int iBlock = 0x10000; for ( int i = 1; i | |
Problem with @UniqueConstraint [] args) { int r = ( int )( Math . random () * 1000000 ); String PATH = "c:\\temp\\test_" + r + ".odb | |
Does ObjectDB support lazy loading?; } @Entity static class B { @Id @GeneratedValue public Long id; int value; B( int value | |
NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1; } @Override public int hashCode() { int hash = 0; hash += (id != null ? id.hashCode() : 0); return | |
Unexpected behaviour upon update. Bug? This sample does not work as I expect. Why? Is it a bug? Below is the complete program. Expect: 3 Get: 4 import java.io.Serializable; import java.util.List; import javax.persistence.*; @Entity public class Update implements Serializable { @Id int i; int v; public static void main | |
Performance issue in a query due to compareTo calls private String comment; @Basic private boolean isVisible; @Basic private int numberOfDefinedValues = 0; @Basic private int lastIdentifierIndex = -1; @Deprecated @Removed (version = EPVersion.EP2_5_0 | |
Internal exception when updating date filed (TemporalType.DATE); public static class DataManager { private final int ... ; for ( int index = 0; index | |
Problem of query With an aggregate function listSommeLong = new ArrayList (); for (BigDecimal[] bigDecimals : listRes) { for ( int i = 0; i | |
Connection performace after upgrade to objectdb 2; public static void main(String[] args) { for ( int i = 0; i | |
Update Entity references if we change the type of an entity, because it's possible that many other entities have just a ID based reference with a simple ' int ' field | |
Index on map key; em.getTransaction().begin(); for ( int i = 0; i | |
Dates better. If you want to store a timezone you may use a separate int field. support Support | |
zip file or JAR manifest missing EntityManager em = SingleManager.getEntityManager(); public void read(){ int iCnt = 10;   | |
Connection is closed Caused by: java.io.EOFException; "objectdb://localhost/test.odb;user=admin;password=admin"); for ( int i = 0; i | |
Performance in SELECT statement State { private Long lastProcessingDate; private int | |
member visiting in jpql an ordinary int field (holding the array length) for this purpose. support Support | |
EntityManager getMetamodel() causes crash Point objects in the database: em.getTransaction().begin(); for ( int i = 0; i System.out.println | |
Query by array element; boolean isProperty( int index) {   | |
Optimistic Locking(); } @PersistenceCapable static class Counter { private int count; void increase() { count++; } } } For optimistic | |
Server connection management;user=admin;password=admin"); for ( int i = 1; i | |
how to create only table structure. hi, I want to create only a table without insertions of data. And also table contains constraints like not_null, unique, primary key etc. Ex: (In sql) create table emp (id int (5) primary key, name varchar2(20)); , so it will create only table. when we want to see the table structure | |
Date field Index is corrupted due to time change int hashCode() { if (id != null | |
No clue how to query with collection Hi there! Actually, what I have is something like: @Embedable class Address { String getStreet(); int getStreetNo(); } @Entity class Contact { Collection getAddresses(); } Now what I want to do is to select all available | |
Performance problem; startTime = System.currentTimeMillis(); int i = 0; while(i | |
NPE at com.objectdb.jpa.JpaQuery.getResultList(true, -1, -1); } public List findMomentPayloadEntities( int maxResults, int firstResult) { return ... (boolean all, int maxResults, int firstResult) { EntityManager em = getEntityManager(); try ... ; int maxResults, int firstResult) {   | |
[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null() { return findChartEntities(true, -1, -1); } public List findChartEntities( int maxResults, int ... findChartEntities(boolean all, int maxResults, int firstResult) { EntityManager em = getEntityManager(); try | |
javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName Where getWidthPxSideBarLeft() is an annotated getter of an entity ViewConfiguration: private int ... ; public int getWidthPxSideBarLeft() { return widthPxSideBarLeft; } public void setWidthPxSideBarLeft( int widthPxSideBarLeft | |
NullPointerException in __odbGetNumMember wrong: Mitglied(GalaxyJPAEntityQublet).__odbGetNumMember( int ) line: 1 UMR.I(Object) line: 765 UMR.H ... ENH.a(ENT, TYW) line: 46 STA.T(EVC, TYW) line: 512 STM.E(EVC, TYW, boolean, int ) line: 425 PMImpl(OBM | |
Navigation through lazy loading from Detached Objects; @Id int id; String str;   ... ; MyEntity( int id, String | |
"is not null" queries not working with index; em.getTransaction().begin(); for ( int i = 0; i = 0 or p.bar = 0 or p.bar | |
Unexpected exception (Error 990) com.objectdb.o.InternalException MyEmbeddable { int x;   | |
Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled; int x; } } Build 2.6.0_04 includes a fix of this issue | |
UPDATE statemen crash when i put the WHERE clause..createEntityManager() ; int lab_points ; for (List linie: linesAsList ) if (linie.get( 1 ).matches | |
Use temporary files to enable very large transactions an entity: em.getTransaction().begin(); for ( int i = 0; i | |
Eager Fetch of Map with Entities as Keys; public int hashCode() {   |