Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Setting up the Database
  2. Defining the Audience Roles
  3. Separating Announcements based on Topic
  4. Configuring the WYSIWYG Editor
  5. Changing Announcement List Sort Order

...

Anchor
database
database

Setting up the Database

  • Edit the pom.xml to define the jdbc driver to be used.

     

    Code Block
    <!-- The JDBC Driver used by the portlet -->
            <jdbc.groupId>org.hsqldb</jdbc.groupId>
            <jdbc.artifactId>hsqldb</jdbc.artifactId>
            <jdbc.version>2.2.9</jdbc.version>
     
  • Define your database details in src/main/resources/database.properties

    Code Block
    ## Default configuration uses an in-memory database that will reset 
    ## whenever you restart the portlet
    driver.class=org.hsqldb.jdbc.JDBCDriver
    driver.url=jdbc:hsqldb:mem:announce
    driver.username=sa
    driver.password=
    driver.validationQuery=select 1 from INFORMATION_SCHEMA.SYSTEM_USERS
    hibernate.dialect=org.hibernate.dialect.HSQLDialect


Anchor
DefineAudience
DefineAudience

...