Beispiel #1
0
  /**
   * @param type the entity type of the instance
   * @param session the session
   * @param instance the instance
   * @param id the id of the instance
   * @since 2.0.0
   */
  public ManagedInstance(
      EntityTypeImpl<X> type, SessionImpl session, X instance, ManagedId<? super X> id) {
    this(type, session, instance);

    type.setId(session, instance, id.getId());

    this.id = id;
  }