ObjectDB Database Search

101-150 of 169 results

Cascading makeTransient

. String cannot be cast to com.objectdb.spi.TrackableUserType at com.objectdb.o.JDE.g(JDE.java:126 ... (JDOConnection.java:263) ... 2 more Caused by: java.lang.ClassCastException: java.lang. String ... { private int fieldInt; private String fieldString; private HashMap fieldMap; private ArrayList

UTF Error

.InternalException: Error reading UTF string at com.objectdb.o.BYR.U(BYR.java:1217) at com.objectdb.o.BYR.U(BYR.java ... on EJB PersonFacade, method: public java.util.List beans.AbstractFacade.findBySQL(java.lang. String ) WARNING: javax.ejb.EJBException: Error reading UTF string at com.sun.ejb.containers

Problem with distinct select, order by and equivalent alias/attribute path

implements Serializable {     @Id     private String id;         private String town;     public Location() {     }     public Location( String id, String town) {        

Unexpected output "*** PatternParameterImpl" in the java console

why? Caused by: PrintStream.write( String ) line: 603 PrintStream.print( String ) line: 745 PrintStream.println( String ) line: 882 ThreadPrintStream.println( String ) line: 179 TYS.k() line: 199 TYM.Z(boolean, String , OType, Object) line: 546 TYM. (TSR, ClassLoader, SCM, PersistenceUnitInfo, String , ERR

IDs of Entities suddenly became UUIDs?

do have a UUID String as their id instead of Long which is of course causing a lot of troubles. Note ... ID, others a String UUID. Our Base-Entity everything inherits from is declared as usual with Long ... the DB are having the field "myId" as type " String " and with an UUID

JPA inheritance issue with ObjectDB - Field not found in type error

implements Serializable { // ... } I have a JPQL query that looks like this: String jpql = "Select vtm ... abstract facade. public List findByJpql( String temSQL, Map parameters) { System.out.println("findByJpql ... it = s.iterator(); while (it.hasNext()) { Map.Entry m = (Map.Entry) it.next(); String pPara

Schema-Update: Rename superclass and remove one subclass

: Generate Database public static void main( String [] args) { EntityManagerFactory emf = Persistence ... SuperClass { @Basic public String kind; @Basic public String mode; protected ChildClassA ... ) public class ChildClassA extends RenamedSuperClass { @Basic public String kind; @Basic public String

persisting object with long[][] arrays of array

; private static final long serialVersionUID = 1L;     public @Id String id;    ... ;     public TESTObject( String ids, long[] time, long[][] a1, long[][] a2, long[][] b1 ... ;   return ret;     }     public static void main( String [] args

Join query problem with new statetment

;private long inspID;     private String inspName;     private long productID;     private String productName;      ... ; long inspId, String inspName, long productId, String productName) {     

How to avoid NULL values on Embedded entities

;  @Basic(optional=false) private String calle;     @Basic(optional=false) private int numero;     @Basic(optional=false) private String ciudad;     @Basic(optional=false) private String provincia;     @Basic(optional=false) private

_PersistenceException: Type is not found on getSingleResult.

;         @Column     private String identificacion;   ... ;     private String primerNombre;         private String segundoNombre;         private String primerApellido;   

How to Use a SF with extended Persistence Context?

GuestUpdater and use its update( String name) method instead of the persist ( String name) method ... by their names using findGuest( String name) method. The updateGuest( String name) simply look ... for method public void guest.GuestUpdater.updateGuest(java.lang. String ): javax.ejb.EJBException: java

Mismatch client-server protocol prefix

: @Transactional     @Override     public TrackerUser findByName( String ... ;   public Unit findByName( String unitName) throws at.co.pjm.tracker.data.exceptions ... void login(TrackerUser loggedInUser, AccessType accessType, String note) { LoginEvent event = new

Error using query with MAX() function

= "mySchema") public class TestEntity { @Id private int id; @Basic @Lob private String remark; @Basic ... ; } public void setId(int id) { this.id = id; } public String getRemark() { return remark; } public void setRemark( String remark) { this.remark = remark; } public Date getChangeDate() { return

Bug: ClassCastException by retrieval

; */ public static void main( String [] args) {   EntityManagerFactory emf = Persistence ... = ta; } } @Entity class tNode extends Node { String sData; public String getsData() {   return sData; } public void setsData( String sData) {   this.sData = sData;   char[] ca = sData

Explorer in 2.3

data and Strings . After playing with it for a while, here is a list of additional features I'd love ... . For example, I double click on a String field in an entity. Right now, all I can do is type some text ... . The other really useful thing about this would be that you could set a value other than a String or

Problem with byte arrays in JDO - internal exception

ObjectdbTest { /** * @param args the command line arguments */ public static void main( String [] args ... ; /** * * @author steve */ public class Example { private long id; private String name; private byte ... */ public void setId(long id) { this.id = id; } /** * @return the name */ public String getName() { return

EntityManager refresh problem

;     private EntityManager createEntityManager( String dbFileName) {     ... ; private String fieldA;     private int fieldB;     public String ... ;  public void setFieldA( String fieldA) {         this.fieldA

Filename.odb$ Persisting Issue

and have a main function that looks like this... public static void main( String [] args) { launch(args ... (below) public static void main( String [] args) {   launch(args);   departmentDB.close ... ( String [] args) {   launch(args);   departmentDB.close();   employeeDB.close();  

CriteriaQuery .where() for multiple conditions

( String name, String surname, ServletContext servletContext) { EntityManagerFactory emf ... string (JPQL) by toString() on the criteria query. support Support

@Column length is not working.

(unique = true, nullable = false, length = 16)  but when i m trying to insert a string for that column with a string that has more than 16 character, not able to get any error or exception from ... so its very difficult to validate the column string length. Please find the below project

Problem with @UniqueConstraint

Peter import javax.persistence .*; public final class Test2 { public static void main ( String [] args) { int r = ( int )( Math . random () * 1000000 ); String PATH = "c:\\temp\\test_" + r + ".odb ... ) String name; } }   pezi Peter Sauer @UniqueConstraint is an ORM annotation. It references RDBMS

Database is locked when in use

of query.setParameter("name", "your-dir-name"); Is the second agruement a string or new File (diectory path);   binitbhaskar Binit Bhaskar It should be a string , but since it is undocumented

Can I Disable the Creation of the "log" Directory?

main( String [] args){ String currentDirectory = System.getProperty("user.dir

LifeCycle Event with Embeddable classes

@GeneratedValue private Long id; private String description; @OneToMany(cascade = CascadeType.ALL, fetch ... ; private Integer priority; private String comment; @PrePersist @PreUpdate void onPreUpdate

Double persist of Entity field with Cascade.ALL

follows: @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String ... String chapterTitle; The idea is that after I make changes to the Book class on the client side (i.e

SelfTest and com.objectdb.Doctor

your application using:     Doctor.main(new String [] { ... }); Output will be written ... thank you for your reply. We implemented the solution and captured the string -output. 

zip file or JAR manifest missing

the target existence, if yes then accumulate, else insert a new record. String sQ2 = "select i from ItemList ... ; SingleManager.close(); } public static void main( String [] args) {   SingleManager.clearDB("Page

Cast exception?

EntityManagerFactory createEntityManagerFactory( String paramString, Map paramMap) /* */ { /* 73 ... of local PersistenceProviders is 0 or none of them is able to create an emf with the given string

mapping file is not being loaded

( String [] args) {         EntityManagerFactory emf =   

Problem on JPA Merge Entity.

constraint,          String elementType, Long statementId) throws

Problem with Criteria Querys

.Root; public final class MyTestCase {     public static void main( String [] args) 

ObjectDB JDBC to Object compiler

Hello , some products developed by JDBC , So we cannot use ObjectDB. My idea is , you can make JDBC To ObjectDB wizard compiler or something like this. You can eliminate JDBC Requests from Java Code. It can be Intellij or Eclipse IDE plugin for ObjectDB.   It dedects strings and combinations

Embedded List

void main( String [] args) {         EntityManagerFactory emf = null

Duplicate Entity class names causes Exception in Query

); } return c; } @Id protected String id = "1"; @SuppressWarnings("unused") // used by JPA @Version private

Online backup problem

; EntityManager em = null;   String result = "OK";   try {    emf = Persistence

Source not found error after downloading ObjectDB 2.3.7_04

; public static void main( String [] args) {         Employee

query on calendar class

    private long serialID;     private String A;    

Storing XML files in ObjectDB

class per element type. You can also store an entire non parsed XML file as string or byte[] in one entity object. support Support

combined index not used

( String [] args) throws Exception { EntityManagerFactory emf = Persistence.createEntityManagerFactory ... { public static void main( String [] args) throws Exception { System.setProperty("objectdb.temp ... on a string in the query plan but on the index itself ? example query (question: how can we hint

Strange Error with Criteria API and Sorting

( String [] args) {   EntityManagerFactory emf = Persistence.createEntityManagerFactory ... {   private String name;   public OtherEntity()   {   }   public OtherEntity( String name)   {    this.name = name;   }   public String getName()  

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

final class ChildEntityRemoveProblem { public static void main( String [] args) {   ...   private String stringAttribute1;   public String getStringAttribute1() {    return stringAttribute1;   }   public void setStringAttribute1( String stringAttribute1) {  

JDO PersistenceManager.getSequence() returns null sometimes

( String [] args) { PersistenceManagerFactory factory = new com.objectdb.jdo.PMF(); factory ... { private String message; public Thing( String mess) { message = mess; } } package.jdo (in the root

ObjectDB 2.5.4

Added empty implementation of new JPA 2.1 methods. Implemented new JPA 2.1 EntityManagerFactory methods:  createEntityManager , unwrap . Improved retrieving persistent string fields by using "".intern() for empty strings . Fixed a bug in queries on composed embedded primary key ( issue #1301 ).

Unexpected exception (Error 990) com.objectdb.o.InternalException

main( String [] args) {         EntityManagerFactory emf =   ... .*; public final class T1620 {     public static void main( String [] args) {   

UTF Error

.InternalException: Error reading UTF string com.objectdb.o.InternalException: Error reading UTF string at com.objectdb.o.BYR.U(BYR.java:1217) at com.objectdb.o.BYR.U(BYR.java:523) at com.objectdb.o

ClassCastException after upgrade to 2.3.5_03

follows: @Entity public class ObjectDbMessagePayload { @Id String id; @OneToOne(orphanRemoval=true

"is not null" queries not working with index

; import javax.persistence.Persistence; public class Main {     public static void main( String

ObjectDB 2.3.6

Improved performance of collection and map size evaluation in queries. Fixed a critical bug in page caching (issues #610 , #621 , #625 ). Fixed a bug in optimization of non ASCII string indexes. Fixed the new query HOUR function to return hours as 0 to 23 (using 24-hour clock). Fixed a regression

ArrayIndexOutOfBoundsException on flush

) and is help as a string . The size is certainly larger than 2k and is likely to be in MB. The second