Home » Search

About generated

11-20 of 200Refresh
Forum
20

Possible issue for default id generator

generator when strategy is sequence. Error: Incomplete definition of auto value in field MyTestCase ... and 36: @GeneratedValue(strategy=GenerationType.SEQUENCE)//, generator="seq") @Id ... there is no default generator but the element generator is optional. Thanks. In ObjectDB using
Forum
20

auto-generated uuid fields

Hello, we're porting a JDO application to ObjectDB which uses uuid-hex generated values. However the page on generated values in your JPA tutorial only mentions numeric generated values, and when we try to use it the error message seems to imply that auto-generating strings isn't supported
Issue
20

Post-compile enhancement sometimes causes error in generic loops: incompatible types found: java.lang.Object: required: Entity

build.xml in a NetBeans web app, and sometimes on editing a file that performs a generic for loop over an @entity type I get a generics error. The generic for loop is:  for (Steel s ... , which is compromised by this. This rewrite of the generic for loop works but it is inconvenient
Forum
20

Primary key generation problem after changing entity package

) @GeneratedValue(generator = "SEQ_BOARD", strategy = GenerationType.SEQUENCE) Also, when I modify ... )         @GeneratedValue(generator = "SEQ_BOARD", strategy = GenerationType.SEQUENCE)         Long id ... .7_04] javax.persistence.PersistenceException Duplicate definition of generator 'SEQ_BOARD in ' in
Forum
20

com.objectdb.o.UserException: Failed to generate dynamic type

" [ObjectDB 2.6.1_05] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0 ... .o.UserException: Failed to generate dynamic type Entities.AbstractLong at com.objectdb.o.MSG.d(MSG ... .loadClass(ClassLoader.java:357) ... 17 more [ObjectDB 2.6.1_05] Failed to generate dynamic type
Forum
19

auto generate timestamp

Hi all, How can I create auto timestamping column? I want the database to generate the timestamp. I tried google but suggested solutions doesn't work in objectDB. http://stackoverflow.com/questions/811845/setting-a-jpa-timestamp-column-to-be-generated-by-the-database - Pawel   Yes, currently
Forum
19

Field in Generic Class not persisted?

Hi, I am trying to persist a class which is extended from an generic class - but fields declared inside the generic class are not persisted - is that expected? I assume it can be done b/c this field can be recovered after serialisation/deserialization. Here is an code to demonstrate the problem
Forum
19

Newbie : How to return the auto-generated ID

Hello, I am new to this community, as well as JPA and ObjectDB. I want to read the auto-generated ID when I persist a new entity (with @Id @GeneratedValue annotations applied). I am following ... (immediately after persist) - you have to switch to sequence or table value generation strategy. zombie
Forum
19

EmbeddedId with Generated field value

both solutions I expected I could get a generated value for the field uid by simply adding the documented ... simply a not contemplated future? Automatic generated IDs is currently supported only for entity
Forum
19

Failed to generate dynamic type

Hi  I was trying to enhance some of my classes and I got an error :  Failed to generate dynamic type com.package.RootContainer (error 361) It seems that all dependent classes are on the classpath , so what is missing or how to recognize what is wrong with that class ?? thanks in advance b