mappedsuperclass Questions

3

Solved

My DB structure is as follows: work: CTI table Work MappedSuperclass table AbstractImageWork which extends Work final table PhotoWork which extends AbstractImageWork comment: MappedSuperclas...

3

I'm trying to create a inheritance with TABLE_PER_CLASS strategy, but i want to have different primary key for each table is it possible? I've one class Register which has millions of instances, s...
Kermanshah asked 7/11, 2017 at 2:5

4

Solved

I'm using JPA2 with Hibernate and try to introduce a common base class for my entities. So far it looks like that: @MappedSuperclass public abstract class BaseEntity { @Id private Long id; @O...
Countrified asked 21/12, 2011 at 12:35

3

I have a class AbstractEntity that is extended by all the entities in my application and basically acts as an Identifier provider. @MappedSuperclass public class AbstractEntity implements DomainEn...
Bittencourt asked 29/4, 2015 at 12:1

1

Solved

I want to group common mappings in an interface, but I cannot use an abstract superclass because my entities already extend another class. So I need an interface like below: @MappedSuperclass publ...
Floatable asked 1/3, 2018 at 7:55

2

I have generic class that extend other generic class. All of them is @MappedSuperclass. So they dont have own table in database. They are also abstract, so they dont have any objects. They are just...
Lymn asked 24/11, 2014 at 9:40

3

Solved

I have a few domain model classes in my web app that have a hierarchical relationship to themselves. An example of one is the hierarchical category structure used to classify users postings. There...
Acosta asked 8/8, 2010 at 19:31

1

In a Symfony2 application I have a MainBundle and distinct bundles which can be enabled or not. In the MainBundle I need to have the Model and a basic Entity. In an OtherBundle an Entity with the s...

1

Solved

I have a "Offer" class (MapperSuperclass) and 2 more classes extending it, "PrivateOffer" and "PublicOffer". The problem I have is, when I run "doctrine:generate:entities" command, both classes "P...
Row asked 9/9, 2014 at 16:12

1

When I deploy a symfony website including mapped superclass entities online, I get the following error: AnnotationException: [Semantical Error] The annotation "@Doctrine\ORM\Mapping\MappedSuperCla...
Exacerbate asked 5/3, 2014 at 14:32

1

Solved

Given the following class structure: @MappedSuperclass @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) public abstract class Animal {} @Entity public class Dog {} @Entity public class Cat...
Vadnee asked 11/1, 2013 at 21:21

2

Solved

The generic entity, super class: @MappedSuperclass public abstract class GenericEntity { private Integer id; public Integer getId() {return id;} public void setId(Integer id) {this.id = id;} } ...
Bedford asked 10/3, 2011 at 9:51

1

Solved

I need association @OneToMany from Country to superclass Place (@MappedSuperclass). It could be bidirectional. I would need something like @OneToAny. @MappedSuperclass public class Place { priva...
Caprine asked 22/1, 2011 at 18:0

1

Nearly every table in our database has a FK to the Auditing table which logs created, updated and deleted status (date and username). We mapped the auditing table to the Auditing class and use it ...
Lectra asked 21/10, 2010 at 11:16
1

© 2022 - 2024 — McMap. All rights reserved.