Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Initial Persistence interface and annotation
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bluhm <bluhmdj@ornl.gov>
  • Loading branch information
dbluhm committed Jun 2, 2020
1 parent e4ba6ac commit f41186e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
@@ -0,0 +1,6 @@
package org.eclipse.ice.dev.annotations;

public interface IPersistenceHandler {
public <T extends IDataElement> void save(T element) throws Exception;
public <T extends IDataElement> T findByID(String id) throws Exception;
}
@@ -0,0 +1,13 @@
package org.eclipse.ice.dev.annotations;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.SOURCE;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Retention(SOURCE)
@Target(TYPE)
public @interface Persisted {
String collection();
}

0 comments on commit f41186e

Please sign in to comment.