JPA Tutorial 4 - Inheritance and Polymorphic Queries
Group items matching
in title, tags, annotations or url
15More
schuchert - JPA Tutorial 4 - Inheritance and Polymorphic Queries - 0 views
- ...12 more annotations...
-
do not actually need to do anything other than have one entity inherit from another entity to get everything to work
16More
MySQL Error Number 1005 Can't create table '.mydb#sql-328_45.frm' (errno: 150) | VerySi... - 0 views
- ...12 more annotations...
-
One of the key field that you are trying to reference does not have an index and/or is not a primary key
-
Make sure that the Charset and Collate options are the same both at the table level as well as individual field level for the key columns
-
You have a syntax error in your ALTER statement or you have mistyped one of the field names in the relationship
-
max length of 64 chars
28More
MySQL :: MySQL 5.7 Reference Manual :: 5.4.4.2 Configurable InnoDB Auto-Increment Locking - 0 views
-
Configurable
-
table-level locks held until the end of a statement make INSERT statements using auto-increment safe for use with
- ...24 more annotations...
-
However, those locks limit concurrency and scalability when multiple transactions are executing insert statements at the same time
-
For INSERT statements where the number of rows to be inserted is known at the beginning of processing the statement, InnoDB quickly allocates the required number of auto-increment values without taking any lock, but only if there is no concurrent session already holding the table-level AUTO-INC lock (because that other statement will be allocating auto-increment values one-by-one as it proceeds)
-
obtains auto-increment values under the control of a mutex (a light-weight lock) that is not held until the statement completes, but only for the duration of the allocation process
-
Auto-increment values are not ensured to be the same on the slaves as on the master if you use innodb_autoinc_lock_mode = 2 (“interleaved”) or configurations where the master and slaves do not use the same lock mode
74More
Chapter 15. Data Management - 1 views
-
abstractEntity.uid();
- ...70 more annotations...
-
id is defined and is maintained in the three layers during the different serialization/persistence operations
-
recommended approach to avoid any kind of subtle problems is to have a real uid property which will be persisted in the database but is not a primary key for efficiency concerns
-
Calling the EntityGraphUninitializer manually is a bit tedious and ugly, so there is a cleaner possibility when you are using generated typesafe service proxies
-
in the Flex application, register the UninitializeArgumentPreprocessor component in Tide as follows :
-
Tide maintains a client-side cache of entity instances and ensures that every instance is unique in the Flex client context
-
Tide currently only supports Integer or Long version fields, not timestamps and that the field must be nullable
-
@Column(name="ENTITY_UID", unique=true, nullable=false, updatable=false, length=36) private String uid;
-
correct way of knowing if any object has been changed in the context, is to use the property meta_dirty of the Tide context