/** * Creates a new asset with the primary key. Does not add the asset to the database. * * @param assetId the primary key for the new asset * @return the new asset */ public Asset create(long assetId) { Asset asset = new AssetImpl(); asset.setNew(true); asset.setPrimaryKey(assetId); return asset; }