1)How to use custom sequence with custom primary key
How can we use the existing sequence ("SEARCHACTIVITYIDSEQ") and custom primary key("SEARCHACTIVITYID") when we create AO objects.
public interface SearchActivityEntity extends Entity{
@PrimaryKey("SEARCHACTIVITYID")
public long getSEARCHACTIVITYID();
}
2)How to access the existing tables using AO
We have a Table "SEARCHACTIVITY", before we used the hibernating to access this table, Now we want to use AO to access these tables, is there any way to access these existing tables with AO?
AO creates the new table ("AO_707237_SEARCHACTIVITY" even if we specify the existing table name
@Table("SEARCHACTIVITY")
public interface SearchActivityEntity extends Entity{
...
}