Hello,
I'm a total noob with RIFE, and very impressed by its features. Finding
that using hibernate for persistence is as efficient as killing a
mosquito with a bazooka, i'm looking at RIFE's built in persistence, and
it seems to be exactly what i need.
My first question is about design : coming from Hibernate, i'm used to
Data Access Objects.
Porting it to RIFE with my new project, i have an Address bean, so i
made an AddressDAO, extending DbQueryManager. Is it the right way to do
this, or is it completely dumb ?
To test it, i added an install method in my address DAO :
public void install() {
CreateTable create = new CreateTable(getDatasource());
create.table("ADDRESS").columns(Address.class).primaryKey("id").column(
"addr1", String.class);
executeUpdate(create);
}
I was assuming that RIFE would only create id and addr1 in my ADDRESS
table, but actually RIFE created all the other fields (it's great : i
wouldn't have liked to have to declare all my fields in my table
statement ! ). But the fields are created in alphabetical order. Is
there a way to change this ?
In addition, while RIFE's javadoc is one of the most detailed i've seen,
it appears that the CreateTable is poorly documented.
Even though the methods' names are explicit, what for example does
unique or check do ?
Thanks in advance for your help, i will certainly frequently ask dumb
questions in the coming weeks, please don't blame me ;-)
Laki
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users