AO 1.2.0 Upgrade Guide

Impact

There is no impact on users of either the ActiveObjects library or the Atlassian plugin - it is backwards compatible with 1.1.x.

New Features

Added support for composite indexes. Composite indexes can be declared using @Indexes annotation. Example usage is shown below:

import net.java.ao.Entity;
import net.java.ao.schema.Index;
import net.java.ao.schema.Indexes;
 
@Indexes({
    @Index(name = "names", methodNames = {"getFirstName", "getLastName"}),
    @Index(name = "age", methodNames = "getAge")
})
public interface Person extends Entity {
    public String getFirstName();
    public void setFirstName(String firstName);
    public void setLastName(String lastName);
    public String getLastName();
    public int getAge();
    public void setAge(int age);
}

Please note two things:

  • It is still possible to declare single column indexes using @Indexed annotation.
  • The new way of declaring indexes may be also used to declare single column indexes.

For more information please refer to java docs.

Notable Bugfixes

There are no bugfixes in this release.

Changes

Loading
Key Summary T Created Updated Due Assignee Reporter P Status Resolution Fix Version/s
AO-96 Add possibility in AO to create multi-column indexes New Feature Feb 02, 2011 Apr 27, 2017 Sebastian Pawlak Samuel Berrigaud Major Resolved Fixed 1.2.0

Was this page helpful?
Powered by Confluence and Scroll Viewport