Yes, a Hibernate Entity class can be declared final, however it is not a good practice.
Hibernate uses the proxy pattern for performance improvement during lazy association, by making an entity final, Hibernate will no longer be able to use a proxy as Java doesn’t allow the final class to…
How to TRUNCATE table if FK added in table ?
SET FOREIGN_KEY_CHECKS = 0;
TRUNCATE table online_audit_master.hc_ad_user_application;
SET FOREIGN_KEY_CHECKS = 1;
Run Spring boot project at command line
java -jar target/onlinebookstore-0.0.1-SNAPSHOT.jar
1 2 3 4 5 6 7 8 9
o/p
4 3 2 1 5 6 7 8 9
public class Application {
public static void main(String[] args) {
Integer[] x = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
int length = x.length;
int pos = 4…