This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
// @Note: Sample code from Broadleaf | |
@Entity | |
@Inheritance(strategy = InheritanceType.JOINED) | |
@Table(name = "BLC_CUSTOMER", uniqueConstraints = @UniqueConstraint(columnNames = { "USER_NAME" })) | |
public class CustomerImpl implements Customer, AdminMainEntity { | |
@Id | |
@Column(name = "CUSTOMER_ID") | |
protected Long id; |
// Get current stack trace in Java | |
// - http://stackoverflow.com/questions/1069066/get-current-stack-trace-in-java | |
// - http://stackoverflow.com/questions/944991/is-there-a-way-to-dump-a-stack-trace-without-throwing-an-exception-in-java | |
// - http://javarevisited.blogspot.com/2013/04/how-to-get-current-stack-trace-in-java-thread.html | |
import org.apache.commons.lang.exception.ExceptionUtils; | |
public void testGetListElevesOfClassInEnclassmentForNonViecourante() { | |
String fullStackTrace = ExceptionUtils.getFullStackTrace(new Throwable("TKT Unit Test")); | |
System.out.println(fullStackTrace); |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer