Compatibility

getStrictIdentityValues

Whether to require exact identity value types when creating object
ids from a class and value. Defaults to false.

setStrictIdentityValues

public void setStrictIdentityValues(boolean strictVals)

Whether to require exact identity value types when creating object
ids from a class and value. Defaults to false.

getQuotedNumbersInQueries

public boolean getQuotedNumbersInQueries()

Whether to interpret quoted numbers in query strings as numbers.
OpenJPA versions 0.3.1 and prior treated them as numbers; more recent
versions treat them as strings.

setQuotedNumbersInQueries

public void setQuotedNumbersInQueries(boolean quotedNumbers)

Whether to interpret quoted numbers in query strings as numbers.
OpenJPA versions 0.3.1 and prior treated them as numbers; more recent
versions treat them as strings.

getValidateFalseReturnsHollow

public boolean getValidateFalseReturnsHollow()

Whether to return hollow instances to broker lookups with a
validate parameter of false. OpenJPA versions prior to
0.4.0 did not return hollow instances without special configuration
(the ObjectLookupMode). Beginning with 0.4.0, hollow
objects are the default.

setValidateFalseReturnsHollow

public void setValidateFalseReturnsHollow(boolean hollow)

Whether to return hollow instances to broker lookups with a
validate parameter of false. OpenJPA versions prior to
0.4.0 did not return hollow instances without special configuration
(the ObjectLookupMode). Beginning with 0.4.0, hollow
objects are the default.

getValidateTrueChecksStore

public boolean getValidateTrueChecksStore()

Whether to check the datastore for the existence of a nontransactional
cached object in broker lookups with a validate parameter
of true. OpenJPA versions prior to 0.4.0 checked the datastore.

setValidateTrueChecksStore

public void setValidateTrueChecksStore(boolean check)

Whether to check the datastore for the existence of a nontransactional
cached object in broker lookups with a validate parameter
of true. OpenJPA versions prior to 0.4.0 checked the datastore.

getCopyObjectIds

public boolean getCopyObjectIds()

Whether to copy identity objects before returning them to client code.
Versions of OpenJPA prior to 0.3.0 always copied identity objects. Also,
you should configure OpenJPA to copy identity objects if you mutate them
after use.

setCopyObjectIds

public void setCopyObjectIds(boolean copy)

Whether to copy identity objects before returning them to client code.
Versions of OpenJPA prior to 0.3.0 always copied identity objects. Also,
you should configure OpenJPA to copy identity objects if you mutate them
after use.

getCloseOnManagedCommit

public boolean getCloseOnManagedCommit()

Whether to close the broker when the managed transaction commits.
Versions of OpenJPA prior to 0.3.0 did not close the broker.

setCloseOnManagedCommit

public void setCloseOnManagedCommit(boolean close)

Whether to close the broker when the managed transaction commits.
Versions of OpenJPA prior to 0.3.0 did not close the broker.