You can set many Derby properties as database-level properties. When set in this way, they are stored in the database and "travel" with the database unless overridden by a system property.
For more information, see "Database-Wide Properties" in Tuning Derby.