How can I make it, do you know?

|
Debiprasad Dash 2022-08-30 19:13:48
Vs 2022-08-30 19:13:38
Fulll stack Java

Have you clear screening test?

Vs 2022-08-30 19:14:57
Debiprasad Dash 2022-08-30 19:13:48
Have you clear screening test?

No bro im from ap but screening will only in offline

Vs 2022-08-30 19:15:09
Bro i have to tell one thing
Vs 2022-08-30 19:15:21
I wanna tell one thing
Vs 2022-08-30 19:19:32
I prepared govt job in 2021 and in 2022 march i joined full stack Java but suddenly my family health became unfortunately is very worst so i missed classes for upto 1 month i know only core java, html, css,javascript and adv java and angular i missed amd im attending presently selenium and spring started yesterday
Vs 2022-08-30 19:19:47
And im very poor
Vs 2022-08-30 19:19:55
Getting depressed
Hansraj 2022-08-30 19:44:18
Vs 2022-08-30 19:19:55
Getting depressed

Everybody having problems in there life

Life is all about problems and there solutions

Manage your time get a part time job and complete your course

pravdograd 2022-08-30 19:44:29
Vs 2022-08-30 19:19:55
Getting depressed

don’t be poor

pravdograd 2022-08-30 19:44:57
Owner owner = (Owner) user;

guys, why this doesn’t work?

pravdograd 2022-08-30 19:45:08
can anyone help please?
Krishna G 2022-08-30 19:45:53
pravdograd 2022-08-30 19:44:57
Owner owner = (Owner) user;

guys, why this doesn’t work?

is user is of type owner ?

pravdograd 2022-08-30 19:46:25
Krishna G 2022-08-30 19:45:53
is user is of type owner ?

owner extends user

Vs 2022-08-30 19:47:03
Hansraj 2022-08-30 19:44:18
Everybody having problems in there life

Life is all about problems and there solutions

Manage your time get a part time job and complete your course

How to get part time job

Krishna G 2022-08-30 19:47:05
pravdograd 2022-08-30 19:46:25
owner extends user

user extends owner will work not the other way round

pravdograd 2022-08-30 19:47:39
I have to take out user out of db, cast it to owner and put back
Krishna G 2022-08-30 19:47:54
can u sahre the classes
pravdograd 2022-08-30 19:47:55
how can I make it, do you know?
pravdograd 2022-08-30 19:48:01
yes, a moment
pravdograd 2022-08-30 19:48:22
@Entity
@Table(name = “users”)
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name = “user_type”, discriminatorType = DiscriminatorType.STRING)
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class User implements UserDetails {
pravdograd 2022-08-30 19:48:35
@Entity
@DiscriminatorValue(value = “Owner”)
@Getter
@Setter
public class Owner extends User{
Krishna G 2022-08-30 19:50:12
user is a super class and there are attributes in owner obbject which user cannot be mapped during casting.Hence it would break
Krishna G 2022-08-30 19:50:50
in the worst case you can write a mapper
pravdograd 2022-08-30 19:51:05
I am trying to solve it for few hours, I really would be appreciated if someone can help with it
Krishna G 2022-08-30 19:51:25
you are doing someting which is not right.
Krishna G 2022-08-30 19:51:36
and u can still use a mapper to convert from user to owner object
R R 2022-08-30 19:52:01
Java brains
Hansraj 2022-08-30 19:52:06
Vs 2022-08-30 19:47:03
How to get part time job

Search for near by Medical shops or any thing near by you

pravdograd 2022-08-30 19:52:24
Krishna G 2022-08-30 19:51:25
you are doing someting which is not right.

yes, I also think that probably from the beginning my logic is wrong

Vs 2022-08-30 19:52:43
Hansraj 2022-08-30 19:52:06
Search for near by Medical shops or any thing near by you

Bro all are filled im in town but not city

|