Posts by mattphilipe94 • 92 points
7 posts
-
0
votes1
answer263
viewsQ: Redirect to page after API consumption
I have two Components in my application made with Angular 5+. A Component is a form, where I fill in parameters that are passed in a GET to my REST API. This form (component1) retrieves the JSON…
-
0
votes2
answers264
viewsQ: Migrate EXTRACT(YEAR_MONTH,data) from Mysql to SQL Server
I have a Mysql query that would need to convert to SQL Server. I tried with datepart SQL Server but it does not maintain the main feature of the Mysql query, which is to maintain the range month by…
-
0
votes2
answers537
viewsA: Hibernate does not close connections/sessions in BD
After many attempts, I found a publication saying that I should "commitr" or "rollback" whenever I call the method beginTransaction () to my Entity Manager. Then I changed my code in the Genericda…
-
0
votes2
answers537
viewsQ: Hibernate does not close connections/sessions in BD
I’m in big trouble using hibernate. Each time I call a method that performs a query or update in the database, Hibernate opens a session in the database and then does not close. I’ve tried…
-
1
votes1
answer748
viewsA: One-way Onetomany relationship
Your class diagram seems correct in relation to the relationship User -> Account the foreign key MUST exist in its Class Bill as according to your system a user may own several accounts then in…
-
2
votes1
answer421
viewsQ: SELECT Multiple Date Range in Mysql
Guys, I have a problem extracting dates on a range of trainings. What I need is the following if a training had its beginning on 01/01/2017 and its completion on 03/03/2017 raise should return in…
-
3
votes1
answer1778
viewsQ: Object persisting problem with @Manytoone - JPA/Hibernate
I have the following problem: I can save/persist the two objects below, but JPA is not linking the ID of the DeclaracaoImportacao in the column ID class/entity . Follows code @Entity @Table (name =…