JPA inheritance performance improvement

This article is about improving JPA’s performance when working with large/thick hierarchies. Let’s suppose that for some reason you have a similar (or larger) hierarchy to one I encountered in one of my projects: – InheritanceType.JOINED also using DiscriminatorColumn – […]

Spring security with kerberos

What is a keytab, and how do I use one? Introduction to Kerberos for Managers Crash Course to Kerberos Appendix D. Troubleshooting JAAS authentication with Kerberos http://www.roguelynn.com/words/explain-like-im-5-kerberos/ KDC = Kerberos Key Distribution Center TGT = Ticket Granting Ticket TGS = […]

Spring security

HTML translated to java config see also Java Configuration see also http://www.springframework.org/schema/security/spring-security.xsd <http security=”none” pattern=”/resources/**”/> <http pattern=”/api1/**” create-session=”stateless”> <intercept-url pattern=”/**” access=”authenticated”/> <http-basic /> </http> <http pattern=”/api2/**” create-session=”never”> <intercept-url pattern=”/api2/api21/**” access=”hasRole(‘ROLE_ADMIN’)”/> <intercept-url pattern=”/api2/**” access=”hasRole(‘ROLE_USER’)”/> <http-basic /> </http> <http pattern=”/api3/**”> <intercept-url pattern=”/api3/api31/**” […]

JPA performance

http://java-persistence-performance.blogspot.ro/2011/06/how-to-improve-jpa-performance-by-1825.html# http://spitballer.blogspot.ro/2010/04/jpa-persisting-vs-merging-entites.html Use byte code weaving EclipseLink implements LAZY for OneToOne and ManyToOne relationships using byte code weaving Pagination Use setFirstResult, setMaxResults of javax.persistence.Query. Caching See https://docs.oracle.com/javaee/7/tutorial/persistence-cache001.htm#GKJIO. See <shared-cache-mode> in persistence.xml or javax.persistence.sharedCache.mode property when creating the EntityManagerFactory. See javax.persistence.Cacheable […]

JAXB 2.2.10

see also http://docs.oracle.com/javaee/5/tutorial/doc/bnbbf.html see also https://jaxb.java.net/tutorial/index.html see also https://jaxb.java.net/guide/index.html – Unofficial JAXB Guide see also How to get simple and better typed binding in https://metro.java.net/guide/ch03.html globalBindings <jxb:globalBindings fixedAttributeAsConstantProperty=”false” collectionType=”java.util.Vector” typesafeEnumBase=”xsd:string” choiceContentProperty=”false” typesafeEnumMemberName=”generateError” enableFailFastCheck=”false” generateIsSetMethod=”false” underscoreBinding=”asCharInWord”/> fixedAttributeAsConstantProperty fixed attributes will be […]