0 votes
1 view
in Java by (3.5k points)

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

1 Answer

0 votes
by (41k 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
0 votes
1 answer
0 votes
1 answer
asked Jul 22 in Java by Anvi (8.2k points)
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...