i found this code for jpa.
after getting entity manager, we can call, find(), remove(), persist() etc methods to perform database operations.
but i have 3 doubts here:
1. what is
java:comp/env here? where it is declared?
2. what is persistence/LogicalName here? where it is declared?
3. how it is knowing on which database i am performing this operations? (i mean to say, in
jdbc we specify driver name, database name, username and password, here we are not specifying anything, how it is working?)
thanks in advance.