The maxims of jurisprudence hereinafter set forth are intended not to qualify any of the foregoing provisions of this code, but to aid in their just application.
Any one may waive the advantage of a law intended solely for their benefit. But a law established for a public reason cannot be contravened by a private agreement.