Bussiness logic, default values, etc

Hi,

I recently bought the package and so far so good.
But i have some questions regarding the entities

What is the best way/best practice to implement some bussiness logic,
for example pre save validation, setting default field values.

How I can specify for the DBMS default field values?
As far I see the entity definition not allows yet to do a full scale Datamodel definition, so we are bound to do some DDL outside of Aurelius. So the model first approach is not feasible yet.

Am I right? Is there any plan to support full model first approach?

Thanks


That is correct, there is no current way to define default values at database level. We consider that if you need complex database structure, you should create the database first yourself. Aurelius abstracts the database and make it just a storage for the objects, so not much database model complexity is needed.

We might add a feature to specify database-level default values, non-unique indexes, but I'm not sure if it will every be complete in database-level schema specification. For example, declaring triggers, stored procedures, views, etc.. So, again, if you need something more complex, then you have to define it yourself.