Skip to content

Commit

Permalink
DATACASS-1 - wip: now working again after refactoring spring-cassandr…
Browse files Browse the repository at this point in the history
…a xml namespace
  • Loading branch information
matthewadams committed Jan 20, 2014
1 parent 363feaf commit 4fd86f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ protected void doParse(Element element, ParserContext parserContext, BeanDefinit

parseKeyspaceName(element, builder);
parseClusterRef(element, builder);
parseScripts(element, builder, "startup-cql", "startupScript");
parseScripts(element, builder, "shutdown-cql", "shutdownScript");
parseScripts(element, builder, "startup-cql", "startupScripts");
parseScripts(element, builder, "shutdown-cql", "shutdownScripts");
}

protected void parseScripts(Element element, BeanDefinitionBuilder builder, String elementName, String propertyName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import java.util.Set;

import javax.validation.constraints.NotNull;

/**
* Interface that stores information about the mapping between a table and the entity or the entities that are mapped to
* it.
Expand All @@ -17,15 +15,14 @@ public interface TableMapping {
* knows that there is only one entity class in this mapping. If there are multiple and this method is called, an
* {@link IllegalStateException} is thrown.
*/
@NotNull
Class<?> getEntityClass();

/**
* Convenience method to set this mapping to use a single entity class.
*
* @param entityClass The class; may not be null.
*/
void setEntityClass(@NotNull Class<?> entityClass);
void setEntityClass(Class<?> entityClass);

/**
* Sets the set of entity classes of this mapping.
Expand All @@ -35,17 +32,15 @@ public interface TableMapping {
/**
* Returns the set of entity classes of this mapping. Never returns null.
*/
@NotNull
Set<Class<?>> getEntityClasses();

/**
* Returns the name of this mapping. Never returns null.
*/
@NotNull
String getTableName();

/**
* Sets the table name of this mapping.
*/
void setTableName(@NotNull String tableName);
void setTableName(String tableName);
}

0 comments on commit 4fd86f9

Please sign in to comment.