Class PreLoginMappingAdapter

All Implemented Interfaces:
EventListener, CoreSessionEventListener, SessionEventListener

public class PreLoginMappingAdapter extends SessionEventListener
This adapter alters the way the JAXBContext handles relationships for an existing persistence unit. It changes non-private relationship mappings to be read-only and replaces those mappings with a mapping to a weaved-in list of relationships that will produce links.
  • Field Details

    • jpaSession

      protected Session jpaSession
  • Constructor Details

    • PreLoginMappingAdapter

      public PreLoginMappingAdapter(Session jpaSession)
      Instantiates a new pre login mapping adapter.
      Parameters:
      jpaSession - the jpa session
  • Method Details