Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.wicketopia.persistence.model;
 
 

Author(s):
James Carman
//----------------------------------------------------------------------------------------------------------------------
// Fields
//----------------------------------------------------------------------------------------------------------------------
    private final PersistenceProvider persistenceProvider;
    private final Class<T> entityType;
    private final Serializable identifier;
//----------------------------------------------------------------------------------------------------------------------
// Constructors
//----------------------------------------------------------------------------------------------------------------------
    public LoadableDetachableEntityModel(Class<T> entityTypeSerializable identifierPersistenceProvider persistenceProvider)
    {
        this. = entityType;
        this. = identifier;
        this. = persistenceProvider;
    }
    public LoadableDetachableEntityModel(Class<T> entityType, T entityPersistenceProvider persistenceProvider)
    {
        super(entity);
        this.  = persistenceProvider.getIdentifier(entity);
        this. = entityType;
        this. = persistenceProvider;
    }
//----------------------------------------------------------------------------------------------------------------------
// Other Methods
//----------------------------------------------------------------------------------------------------------------------
    @Override
    protected T load()
    {
    }
New to GrepCode? Check out our FAQ X