Questions tagged [entity]
In computer science an entity is an object which has an identity and can be uniquely determined, holds storable information or can be processed. As the term has a very abstract and general meaning prefer to use this tag only in conjunction with other more specific tags.
entity
6,461
questions
0
votes
0
answers
15
views
Don't understand coordinate conversion of visionOS RealityKit
I want to convert a world coordinate to the local coordinate of a RealityKit entity.
According to the docs, this should be possible using convert(position:from:), called on the entity.
Since it did ...
0
votes
0
answers
8
views
ERD for Learning Management System
Anyone can help me with this diagram correction?
My examiner highlighted the wrong part of my ERD, and i don't know how to fix it. I'm attempted to create an ERD for my LMS project. Here's a quick ...
0
votes
1
answer
33
views
[Blazor Razor pages I am working on the login/register of a website and these error codes popped up: CS0120 and CS0117
I am creating a website/blog with a register/login/logout feature. I am almost done, but having a hard time with the Identities on the .Net8. The scaffolding feature changed and there were no YT ...
0
votes
0
answers
20
views
how can I compare unmodified and mofidied entity values in a custom repository save method
I want to prepare a custom jparepository save method. In this method I want to compare unmodified and modified entity field values and then update the modified entity based on the comparison.
When I ...
0
votes
0
answers
34
views
Optimistic lock problem ( return entity no problem, return void optimistic lock)
The first method is working fine, but the others are returning errors. Why am I getting these errors? Both methods have the same purpose; however, one of them returns an entity, while the others do ...
0
votes
0
answers
28
views
Modeling legacy data in EF
I have a legacy .csv that my company uses to decode coded values in other tables. The .csv looks similar to this:
Header
Code
Literal
Description
header1
X
literal1X
description1X
header1
Y
...
0
votes
1
answer
50
views
How to Automatically Add and Update a createdBy Attribute in Every Entity Using NestJS and TypeORM
I am working on a NestJS application and using TypeORM for my database interactions. Each entity in my application already has createdAt and updatedAt attributes, which are automatically managed by ...
0
votes
0
answers
47
views
Hibernate DuplicateMappingException with snake and camelcases. Spring
Migrating some big project from Play to Spring. There is many legacy models in which present separated id of relation nearby.
private Long userId;
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(...
0
votes
0
answers
19
views
How to make ENT:Touch only detect touches from a certain entity [GLua]
I cannot figure out how to make ENT:Touch only detect when touching a specific entity instead of detecting anything and everything touching it. It probably has something to do with the argument but ...
0
votes
0
answers
36
views
Telethon Entity With Linux and Google Cloud
I have a message forwarding bot on Telegram that works perfectly in Python on Windows.
When I try to run the same code in a VM on Google Cloud, because it is Linux, it keeps giving me an entity error.
...
1
vote
2
answers
82
views
Storing latitude and longitude as point in PostgreSQL database and handling in Java
I'm working on a project where I need to store latitude and longitude in coordinates field in a PostgreSQL database. I've decided to use the Point data type in PostgreSQL to represent these ...
-1
votes
2
answers
50
views
User cannot be deleted from the database
The goal is to check and delete the user's card when they are deleted, provided it is no longer in use. This is the format for user deletion:
@Transactional
public void deleteUserById(long userId) {
...
0
votes
0
answers
24
views
Is support for ’ or the ’ symbol being removed?
I noticed I’d and don’t on a lot of website I have visited over the past couple of days. I know that this is an html entity, similar to or no-break space, and is used to indicate ...
1
vote
1
answer
178
views
.NET Aspire EF, can't make initial database update
I make my database in .NET Aspire in AppHost project like this:
var db = builder.AddPostgres("db").WithPgAdmin();
var templateApiDb = db.AddDatabase("templateApiDb");
var ...
0
votes
1
answer
71
views
Does flyway validate table schema against entity in spring boot?
I am trying to create a service which should use existing database (Producton) which is already using flyway. I want to add flyway migrations to my service and those migration should not delete ...