Skip to content

Instantly share code, notes, and snippets.

@jewelsea
jewelsea / Main.java
Last active Sep 1, 2021
Small JavaFX framework for swapping in and out child panes in a main FXML container. Code is for Java 8+.
View Main.java
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;
import java.io.IOException;
/**
* Main application class.
@domdorn
domdorn / SGBeanPersistController.java
Created Jan 1, 2012
JPA2 EntityListener Annotations for EBean
View SGBeanPersistController.java
package models.sgcore;
import com.avaje.ebean.event.BeanPersistAdapter;
import com.avaje.ebean.event.BeanPersistRequest;
import javax.annotation.PreDestroy;
import javax.persistence.*;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.HashMap;