WeblogThemeAssoc is added to Roller Business module which will keep track of WeblogTheme and its associated types.This class is persisted through JPA and has the following table.
create table rol_weblogtheme (
id varchar(48) not null primary key,
weblogid varchar(48) not null,
name varchar(255) not null,
custom $db.BOOLEAN_SQL_TYPE_FALSE not null,
#columnNotNullWithDefault('type' 'varchar(16)' 'standard')
);I have added following method to WeblogManager which is implemented in JPAWeblogManagerImpl.
public WeblogThemeAssoc getThemeAssoc(Weblog weblog , String type) throws WebloggerException;
public void saveThemeAssoc(WeblogThemeAssoc themeAssoc) throws WebloggerException;
[1] https://cwiki.apache.org/confluence/display/ROLLER/Roller+GSOC+2011+-+mid+term+project+review