@Data @Entity @Table(name = "_store") public static class Book { @Id private String id; private String title; private String author; private int price; @Transient private String tmp; @Enumerated(EnumType.STRING) private BookType type; } public enum BookType { COMMON, PREMIUM; }
Java
```java // 2 public class Interfaces { public static void main(String[] args) { A a = new A() {}; B b = new B() {}; AB ab = new AB(); a.print(); b.print(); ab.print(); } public interface A { default void print() { System.out.println("interface A"); } } public interface B extends A { default void print() { System.out.println("interface B"); } } public static class AB implements A, B { } } ```
Tell about the hotspot problem in Cassandra and how you solved it.
How do you feel about AI potentially replacing developers? How do you see development in 2-3 years?
Does the order of columns matter when creating a composite index?
What is the difference between Hibernate and JPA?
Is it possible to implement a RESTful API relying entirely on the DELETE HTTP method for all operations?
Can tests be improved, for example by reducing the amount of code?
In what form did the requirements for the tasks come to you?
How to solve the data inconsistency problem: an external call was successful, but saving to the database failed?
How can you view or display the current Instance object in the program?
If there is a chain of objects that refer to each other, at what point can a specific object be deleted?
If the number of tasks is floating (from units to hundreds), what type of thread pool should be chosen?
What are Spring Boot starters? How do they differ from regular libraries? What is auto-configuration?
What contributes to the speed of data transfer in gRPC?
What are the default fetch types for entity relationships in Hibernate (EAGER or LAZY)?
Why do you want to leave [company]?
What are your thoughts on writing tests?
List the transaction isolation levels and briefly explain their purposes.
[name] asked: Tell about the exception hierarchy in Java.