Class PreLoginMappingAdapter

java.lang.Object
org.eclipse.persistence.sessions.SessionEventAdapter
org.eclipse.persistence.internal.jaxb.SessionEventListener
org.eclipse.persistence.jpa.rs.util.PreLoginMappingAdapter
All Implemented Interfaces:
EventListener, CoreSessionEventListener, SessionEventListener

public class PreLoginMappingAdapter extends org.eclipse.persistence.internal.jaxb.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.
Author:
tware
  • Field Details

    • jpaSession

      protected org.eclipse.persistence.internal.sessions.AbstractSession jpaSession
  • Constructor Details

    • PreLoginMappingAdapter

      public PreLoginMappingAdapter(org.eclipse.persistence.internal.sessions.AbstractSession jpaSession)
      Instantiates a new pre login mapping adapter.
      Parameters:
      jpaSession - the jpa session
  • Method Details

    • preLogin

      public void preLogin(SessionEvent event)
      Description copied from class: org.eclipse.persistence.internal.jaxb.SessionEventListener
      PUBLIC: This Event is raised before the session logs in.
      Specified by:
      preLogin in interface SessionEventListener
      Overrides:
      preLogin in class org.eclipse.persistence.internal.jaxb.SessionEventListener