Skip to content

Commit

Permalink
Adds the framework restriction to the entity
Browse files Browse the repository at this point in the history
this prevents the table from being created if the framwork is not active
  • Loading branch information
tbiScireum committed Nov 12, 2018
1 parent d2a763e commit b22b8f7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
package sirius.biz.storage;
package sirius.biz.storage.versions;

import sirius.biz.storage.Storage;
import sirius.biz.storage.StoredObjectRef;
import sirius.biz.tenants.SQLTenantAware;
import sirius.db.mixing.Mapping;
import sirius.db.mixing.annotations.Length;
import sirius.db.mixing.annotations.Lob;
import sirius.db.mixing.annotations.NullAllowed;
import sirius.db.mixing.annotations.Trim;
import sirius.kernel.di.std.Register;

import java.time.LocalDateTime;

/**
* Entity holding meta information about a versioned file.
*/
@Register(framework = Storage.FRAMEWORK_STORAGE)
public class VersionedFile extends SQLTenantAware {

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package sirius.biz.storage;
package sirius.biz.storage.versions;

import sirius.biz.storage.Storage;
import sirius.biz.storage.StoredObject;
import sirius.biz.tenants.Tenant;
import sirius.db.jdbc.OMA;
import sirius.kernel.di.std.ConfigValue;
Expand Down
4 changes: 3 additions & 1 deletion src/test/java/sirius/biz/storage/VersionedFilesSpec.groovy
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package sirius.biz.storage

import sirius.biz.storage.versions.VersionedFile
import sirius.biz.storage.versions.VersionedFiles
import sirius.biz.tenants.Tenant
import sirius.biz.tenants.TenantsHelper
import sirius.db.jdbc.OMA
Expand All @@ -11,7 +13,7 @@ import sirius.web.security.UserContext
import java.time.Duration

/**
* Provides tests for {@link VersionedFiles}.
* Provides tests for {@link sirius.biz.storage.versions.VersionedFiles}.
*/
class VersionedFilesSpec extends BaseSpecification {
@Part
Expand Down

0 comments on commit b22b8f7

Please sign in to comment.