About variable

61-70 of 112Refresh
Forum
1

Can a Set<E> be a foreign key?

I have two classes, Cell and Character.  Basically, the cell is like a room, and contains a variable (private Set cellHeldCharacters;) which holds the IDs of the characters within the cell (The IDs are Primary Keys).  Can I use the Foreign Key annotation for the variable, or is it illegal
Forum
1

Clarification on free license restrictions

, which contains an instance variable of class Person, which in turn has a user defined instance variable of type Name, all used by composition.  I get the following error: Error: Failed to commit
Forum
1

Externalising persistence.xml properties in Glassfish?

. That is the easiest solution.  Another way might be by setting a system variable with the url ... set a static string variable name PERSISTANCEUNIT with the property value. In your persistance.xml
Forum
1

Listing large number of complicated objects with paging.

="0" variable="prod" />             [2011-11-15 19 ... " variable="prod" />     [2011-11-15 23:25:21 #299 query
Forum
1

ODB with Netbeans

"Instance variable for persistent attribute must not be public" How does one switch that off in Netbeans ... ." This is a JPA requirement. Persistence units are optional in ObjectDB. "Instance variable for a persistent
Forum
1

Query all objects that implements a given interface - is that possible?

.persistence.PersistenceException Attempt to define unbound variable ('bk') of type Signals.Signal ... ) Caused by: com.objectdb.o.UserException: Attempt to define unbound variable ('bk') of type
Forum
1

Type ... is not defined as an entity (@Entity is missing) (error 302)

objectdb. I tried placing objectdb as a variable and then all projects refer to this variable
Forum
1

On ensuring ID available after persist

); // then do something that relies on Java variable e having e.getId() defined (like wiring ... () there is no managed entity returned. My copious entity wiring code assumed that the Java variable passed
Issue
1

Best practise loading big data

:     for (MyStepBlock sb : sbc.stepBlocks) { Java creates a local Iterator variable for the each ... references to the root object (to report updates if any). This local variable (the for each iterator
Issue
1

unclear syntax for update query

. It should be either with identification variable all the way: Query query = em.createQuery( "UPDATE Country c SET c ... .setParameter(p, 100000).executeUpdate(); or with no identification variable at all:   Query query