Package org.caffinitas.mapper.annotations

Examples of org.caffinitas.mapper.annotations.CInheritance


                // no super entity
                if (parseEntity.subEntities.length == 0) {
                    // no sub entities --> simple one
                    entity = new MappedEntity(this, parseEntity);
                } else {
                    CInheritance inheritance = parseEntity.inheritance;
                    if (inheritance == null) {
                        throw new ModelUseException(
                            "inherited entity root is not annotated with @" + CInheritance.class.getSimpleName());
                    }
                    // base entity of inheritance structure
                    switch (inheritance.type()) {
                        case SINGLE_TABLE:
                            entity = new MappedEntitySTRoot(this, parseEntity);
                            break;
                        case TABLE_PER_CLASS:
                            entity = new MappedEntityTPCRoot(this, parseEntity);
View Full Code Here

TOP

Related Classes of org.caffinitas.mapper.annotations.CInheritance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.