Questions tagged [concrete-inheritance]

23 questions
0
votes
1 answer

Get an instance to inherit another instance's constraints in pyomo

I'm trying to create an instance that inherits another instance's constraints, whilst adding some new ones. Is there a way to "copy" the previous instance's constraints into the new one? Here's a snippet from the code ... model.bnb_bound_constraints…
0
votes
1 answer

Create a concrete object in a abstract class by using reflect methods

Suppose I have an abstract class called Model with the following static method: public abstract class Model { ... public static List all() { ... } ... } And a concrete class the extends it: public class Person…
0
votes
1 answer

How to model concrete table relationship where a child entity can contain different data, where the data belongs to the same generic type?

I am thinking of using Concrete Table Inheritance for a use case, and need help determining if I need to use identifying vs non-identifying relationship, and also if how to structure my tables exactly. My use case I have an HTML form object where…
0
votes
1 answer

How do I find a list of subclasses for a propel model with concrete inheritance

I'm building a mini-cms for my local charity (yes, I know I could use a floss project, but they want custom coded) My propel schema currently looks as such:-
Mez
  • 24,430
  • 14
  • 71
  • 93
0
votes
1 answer

Hibernate - table per subclass with unions strategy - id to load is required for loading

I have the following structure: @Entity @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS) public abstract class TemporaryContainerTO { protected Long temporaryContainerId; @Id @GeneratedValue(strategy = GenerationType.TABLE) …
SG87
  • 79
  • 12
0
votes
1 answer

Hibernate - Table per concrete class strategy - separate IDs for each table

In my app I have a meeting object with its properties stored in a meeting table. I have to create a new object, let's say "meetingNEW" having some different properties, but most of them common. I'm thinking to use the table per concrete class…
SG87
  • 79
  • 12
0
votes
0 answers

What kind of Doctrine inheritance to choose?

I'm having trouble deciding what kind of Doctrine inheritance is right for my project. The goal is for a Virtual Machine (VM) to have multiple softwares (PHP, MySQL and so on ...).Each of these softwares have a distinct class, and some fields in…
0
votes
0 answers

SQLAlchemy ORM for 12 duplicate tables on each of 6 shard databases

The situation: I have a set of 12 tables of the same structure (representing data by month) that exist on each of 6 shards across different databases. I need to get a sample set of data across any of these databases for any given set of months. The…
hello-klol
  • 735
  • 10
  • 20
1
2