I am starting to use JPA and I am always confused with the term entities and their use, I read a lot, but I still do not quite understand. I read the Oracle documentation, but this does not really explain its role in the transaction.
What is a JPA? Do they really store data for each row, I mean, do they store instances containing row data? or do they just display the db tables and then insert and delete into them?
for example, if I use this:
entity.setUserName("michel");
Then save it, then change the username and write it down again (i.e. merge)
Does this change the previously entered username? or does it create a new line in db?
engma source share