Creates a new persistent object.
public virtual object CreateNewObject(
Public Overridable Function CreateNewObject(
session As Session
) As Object
A Session object which represents the session. This property is assigned to the object's PersistentBase.Session property.
An object which is the newly created persistent object.
After the CreateNewObject method creates an object, it is marked as "new", to be inserted into the database later and its PersistentBase.AfterConstruction method is invoked.