About auto

1-10 of 116Refresh
Manual
347

Auto Generated Values

strategies can be used as explained below. The Auto Strategy ObjectDB maintains a special global ... @GeneratedValue with the AUTO strategy: @Entity public class EntityWithAutoId1 { @Id @GeneratedValue(strategy=GenerationType.AUTO) long id; : } AUTO is the default strategy, so the following
JPA Doc
76

GenerationType.AUTO

Enum Constant javax.persistence.GenerationType AUTO Indicates that the persistence provider should pick an appropriate strategy for the particular database. The AUTO generation strategy may expect a database resource to exist, or it may attempt to create one. A vendor may provide documentation
JPA Doc
74

FlushModeType.AUTO

Enum Constant javax.persistence.FlushModeType AUTO (Default) Flushing to occur at query execution. Since: JPA 1.0
JPA Doc
69

ValidationMode.AUTO

JavaDoc Reference Documentation - If a Bean Validation provider is present in the environment, the persistence provider must perform the automatic validation of entities.
Manual
34

Setting and Tuning of JPA Queries

, which has two values: AUTO - changes are flushed before query execution and on commit/flush. COMMIT - changes are flushed only on explicit commit/flush. In most JPA implementations the default is AUTO. In ... query time flush at the EntityManager level: em.setFlushMode(FlushModeType.AUTO); // Enable
Manual
34

Entity Management Settings

" /> auto" on-persist="false" on-commit="true" /> The auto") specifies if persist operations should always be cascaded
Forum
25

"Unsupported auto value type java.lang.String" when persisting new instance

I don't have a simple test case for this issue, but I'm getting this error: Exception in thread "main" [ObjectDB 2.3.2] javax.persistence.PersistenceException Unsupported auto value type java.lang ... (NetworkInformationDatabase.java:71) Caused by: com.objectdb.o.UserException: Unsupported auto value type java.lang.String
Forum
24

explorer feature request: ability to auto refresh

Request for feature: Ability to auto-refresh an explorer view, say at regular intervals of a few seconds. (at a minimum one ought to be able to manually refresh, for example the list of persistent types). additionally, it would be useful to be able to view an embedded database (read only mode
Issue
24

Feature suggestion: auto-detection of entities via persistence.xml extension

.autodetection" value="class, hbm"/>
Forum
24

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 the following link : http://www.objectdb.com/tutorial/jpa/eclipse/web/entity Thanks. The id is available in