God Himself has set the example of how He wants us to be with our children. He is just and merciful and loving and patient, but He also deals with us firmly when He sees that we're getting off the track. He is a loving God, but He's also a very good Father who knows how to correct us when we need it.
If we teach, train, and lead our children right and set the right example, they will carry that all through life. "Train up a child in the way he should go: and when he is old, he will not depart from it" (Proverbs 22:6). "All your children shall be taught by the Lord, and great shall be the peace of your children" (Isaiah 54:13).