Posts by Alexandre Camilo • 16 points
4 posts
-
0
votes1
answer168
viewsA: @Inject does not work inside annotated class @Scheduled
After reading the deltaspike documentation again, I noticed that the Beans are not injected because the class annotated with @scheduled is instantiated outside the CDI context. I used a…
javaanswered Alexandre Camilo 16 -
0
votes1
answer168
viewsQ: @Inject does not work inside annotated class @Scheduled
I am creating a class using deltaspike and Quartz, using @scheduled. In this class I inject a CDI bean, which is a service class. I chose to use deltaspike because it controls the CDI context within…
javaasked Alexandre Camilo 16 -
0
votes2
answers47
viewsA: Mapmaneto Person x Document Onetoone, Cascade
Thiago, I will suggest another solution for you. Database: Tabela PERSON: ID_PERSON FIRST_NAME LAST_NAME AGE Tabela DOCUMENTS: ID_DOCUMENT CPF RG PERSON_ID The PERSON table, in my view, is the main…
-
0
votes2
answers47
viewsA: Mapmaneto Person x Document Onetoone, Cascade
Good afternoon friend. The mapping is unidirectional or bidirectional? To make the correct notes the decision about the mapping is fundamental. @OneToOne(cascade = CascadeType.ALL) @JoinColumn(name…