Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (4k points)

Java has the transientkeyword. Why does JPA have @Transient instead of simply using the already existing java keyword?

1 Answer

0 votes
by (46k points)
Java's temporary keyword is used to indicate that a field is not to be serialized, whereas JPA's @Transient explanation is used to indicate that a field is not to be persisted in the database, i.e. their interpretation are different.

Related questions

0 votes
1 answer
asked Aug 6, 2019 in Java by Krishna (2.6k points)
0 votes
1 answer
0 votes
1 answer
asked Nov 23, 2019 in Java by Anvi (10.2k points)
0 votes
1 answer
0 votes
1 answer
asked Jul 22, 2019 in Java by Anvi (10.2k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...