Posts by Álvaro Dantas • 3 points
6 posts
-
0
votes2
answers45
viewsA: Find a lower value of a collection, according to one condition
Solved! If anyone needs, follow the code: internal static long minCost(int numProjects, List<int> projectId, List<int> bid) { var projectsBids = new Dictionary<int,…
-
0
votes2
answers45
viewsQ: Find a lower value of a collection, according to one condition
I have two collections: A and B as List<int>, both of the same size N. In collection A, are the designs. In B, the offerings by the project. Illustrating: projects[5, 1, 4, 5] offers[8, 7, 6,…
-
0
votes1
answer621
viewsA: Postbird - Connection Error
Guys, I solved it! D In case someone has the same problem, the solution was the following: I used this ip img to connect to Postbird. And I re-started the container with the commands: Docker stop…
-
-2
votes1
answer621
viewsQ: Postbird - Connection Error
I created a container on Docker with the following command: docker run --name database -e POSTGRES_PASSWORD=senha -p 5432:5432 -d postgres When I try to access via Postbird, I get the following…
-
-1
votes1
answer98
viewsQ: Doubt - Relationship N to N
I’m developing a conceptual model for project management. A Project can have several phases. One Phase can be in several projects. The above relations will generate another table "Projectophase" .…
-
0
votes2
answers85
viewsA: JPA Hibernate with Postgres - 2 transactions
Problem solved! Resolution : 1st part : (Annotation in Arraylist movements) @OneToMany(mappedBy = "conta", cascade = CascadeType.ALL, orphanRemoval = true, fetch = FetchType.LAZY) private…