-
Notifications
You must be signed in to change notification settings - Fork 233
Mapped SuperClass Support
chhavigangwal edited this page Oct 18, 2013
·
15 revisions
According to JPA specifications a Mapped super class is used to define state and mapping information that is common to multiple entity classes.A mapped superclass cannot be queried directly and thus must not be passed as an argument to EntityManager or Query operations. It is a super class which does not have any separate table.It can never be a part of persistent relationship and can be concrete or an abstract class.
Why Support it ?
In order to enable JPA compliance of this
Mapped SuperClass :
@MappedSuperclass
@Table(name = "TRNX")
public class Transaction
{
@Id
private String txId;
@Column
private String bankIdentifier;
@Column
private Date transactionDt;
Inheritance Strategy:
@Entity
@Table(name = "TRNX")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = "tx_type")
public class Transaction extends AbstractTransaction
{
@Column
private String bankIdentifier;
No join table support enabled
Benefits :
-
Datastores Supported
- Releases
-
Architecture
-
Concepts
-
Getting Started in 5 minutes
-
Features
- Object Mapper
- Polyglot Persistence
- Queries Support
- JPQL (JPA Query Language)
- Native Queries
- Batch insert update
- Schema Generation
- Primary Key Auto generation
- Transaction Management
- REST Based Access
- Geospatial Persistence and Queries
- Graph Database Support
-
Composite Keys
-
No hard annotation for schema
-
Support for Mapped superclass
-
Object to NoSQL Data Mapping
-
Cassandra's User Defined Types and Indexes on Collections
-
Support for aggregation
- Scalar Queries over Cassandra
- Connection pooling using Kundera Cassandra
- Configuration
-
Kundera with Couchdb
-
Kundera with Elasticsearch
-
Kundera with HBase
-
Kundera with Kudu
-
Kundera with RethinkDB
-
Kundera with MongoDB
-
Kundera with OracleNoSQL
-
Kundera with Redis
-
Kundera with Spark
-
Extend Kundera
- Sample Codes and Examples
-
Blogs and Articles
-
Tutorials
* Kundera with Openshift
* Kundera with Play Framework
* Kundera with GWT
* Kundera with JBoss
* Kundera with Spring
-
Performance
-
Troubleshooting
-
FAQ
- Production deployments
- Feedback