Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Generic DAO in Hibernate - Client Application
package com.bytestree;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import com.bytestree.config.AppConfiguration;
public class TestApplication {
public static void main(String[] args) {
// Load the Spring context and beans
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfiguration.class);
MyApplication app = context.getBean(MyApplication.class);
app.performDbTasks();
context.close();
}
}
@bytestree

This comment has been minimized.

Copy link
Owner Author

commented May 7, 2016

Refer Generic DAO in Hibernate for complete example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.