Skip to content

Instantly share code, notes, and snippets.

View kagan94's full-sized avatar

Leonid Dashko kagan94

  • Tallinn, Estonia
View GitHub Profile
@mhewedy
mhewedy / HibernateSelectMapApplication.java
Created November 11, 2016 00:08
using List<Map<String, Object>> as return type for hql queries
package test;
import java.util.List;
import java.util.Map;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@jahe
jahe / spring-boot-cheatsheet.java
Last active December 25, 2023 21:35
Spring Boot Cheatsheet
// Enable component-scanning and auto-configuration with @SpringBootApplication Annotation
// It combines @Configuration + @ComponentScan + @EnableAutoConfiguration
@SpringBootApplication
public class FooApplication {
public static void main(String[] args) {
// Bootstrap the application
SpringApplication.run(FooApplication.class, args);
}
}