entity Questions
7
Solved
I've got a DAO that I used to load and save my domain objects using JPA. I finally managed to get the transaction stuff working, now I've got another issue.
In my test case, I call my DAO to load ...
4
Solved
I have 3 DBs that I want to work with: A,B and C.
each one have the same tables (for example: users, products).
I want to let the user decide (on run-time) which DB he wants to work with.
So... I ...
Oligoclase asked 26/11, 2013 at 16:44
1
Solved
Consider these simple classes. They belong to a simple application with Domain Driven Design (DDD) principles, and as such every Entity and ValueObject receives its property values through the cons...
Frigidarium asked 12/8, 2019 at 19:19
5
Solved
So our project use PostgreSQL database and we use JPA for operating the database.
We have created the entities from the database with automatic creator in Netbeans 7.1.2.
After small changes our p...
Britteny asked 6/8, 2012 at 9:30
1
I have Test entity :
public class Test {
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.AUTO)
private long id;
@Column(name = "duration", nullable = false)
private int duration...
4
Solved
What's the difference between MVC (Model View Controller) and BCE (Boundary Control Entity), I know that these two pattern are similar, but there's a difference, what is that difference?
Maintop asked 13/11, 2014 at 14:18
3
Well, code describes it all. I've an Entity Service Provider, which pass an instance of Playlist Model, which supposed to get an array as it's first constructor parameter. How to pass that paramete...
Ascanius asked 13/2, 2014 at 6:20
5
The difference between @Entity and @Embeddable annotation when each one is added before class declaration?
the first create class as an entity, second insert column from another table?
the first c...
Disillusionize asked 15/1, 2014 at 17:4
7
Solved
In EF 4.0, if I understand it right, there are two type of values in Entity : current values and original values.
We can set original values by calling ApplyOriginalValues(TEntity) method but how t...
Impassive asked 15/11, 2011 at 9:17
2
Solved
Are Hibernate Entities the same as the domain models?
See the following example.
Method 1 - Domain model and Entity are same class. Domain model "is-an" entity
@Entity
@Table(name = "...
Oestradiol asked 19/4, 2019 at 3:24
4
Solved
What is the difference between persist() and merge() in Hibernate?
persist() can create a UPDATE & INSERT query, eg:
SessionFactory sef = cfg.buildSessionFactory();
Session session = sef.open...
3
Solved
Am coding on visual studio 2012 and using Entity Model as my Data layer. However, my drop down control with the Linq statement tend to throw an unhandled exception when the page tries to load (stat...
Villenage asked 17/10, 2012 at 15:55
2
Solved
I have a form with assotation field type (list of related entities).
What I've been trying to achieve is to filter this list on "newAction" form (create new entity).
For example, following screen...
Hauteloire asked 22/10, 2016 at 22:37
3
Solved
I have to log the changes of each entity. I've Listener which listens for doctrine's events on preRemove, postUpdate and postDelete.
My entity AccessModule has relations:
App\Entity\AccessModule.ph...
Cultivable asked 1/2, 2018 at 18:32
2
Solved
I have the following Symfony form field, it's a drop down that loads from an entity:
->add('measureunit', 'entity', array('label' => 'Measure Unit',
'class' => 'TeamERPBaseBundle:Measure...
2
Solved
There are times that you want to parse some reasonably well-formed HTML pages, but you are reluctant to introduce extra library dependency such as BeautifulSoup or lxml. So you will probably like t...
Pontius asked 24/2, 2016 at 1:14
3
I have 2 Entities, Coin and CoinRevenue.
Basically, coin holds the price in USD for some other currency.
For example, Coin with symbol EUR with value of 1.0356
@Entity(tableName = "coin")
data c...
Myriagram asked 3/1, 2018 at 14:18
1
Solved
I'm using Telethon's send_message function to send messages to various chats.
Sometimes, the destination is another user (just a regular one on one chat), sometimes a group, sometimes a supergroup...
Celinacelinda asked 24/8, 2018 at 10:28
2
Solved
I have broken FKs in my database and if I load an entity and ask for a related entity Doctrine will throw \Doctrine\ORM\EntityNotFoundException.
For the entity in question, I would prefer that whe...
Pemphigus asked 17/8, 2018 at 10:25
3
Solved
Using Spring MVC we normally see Controller, Service and Repository layer. The Repository layer uses Entity model which is one to one mapping with database. I thought of following -
Should Servic...
2
Solved
Let's say I have a class Employee with a huge amount of fields. And I have a lot of actions related to db with it like CRUD, filter etc.
In MVC pattern all of these stuff could be placed into one...
Wilds asked 7/8, 2018 at 14:49
3
Solved
I am using the cookbook article from symfony.com to implement a file upload option for images.
Now I want to load up other images to the entity.
The default strategy for editing is:
1. Fetch out...
Delanadelancey asked 1/4, 2012 at 8:10
3
Solved
In my Doctrine entity, which is data_class for my form I have a file property defined like this:
/**
* Image.
*
* @Assert\NotBlank
* @Assert\File
* @Assert\Image(minWidth="138", minHeight="96...
Bleier asked 7/7, 2012 at 8:38
1
I need to achieve a front view for the tracking entity, which will change according to the entities movements.
When I assign a value to viewer.trackedEntity property, the camera assumes a certain ...
Mckenna asked 17/7, 2018 at 14:21
2
Solved
I have the following two entity classes.
The first class is SampleApiEntity:
package my.company.rest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
impo...
© 2022 - 2024 — McMap. All rights reserved.