Ecclesiastes 1:1
The words of Ecclesiastes, the son of David, king of Jerusalem. The Scriptures teach most plainly that Solomon was called by three names: peaceable (pacificus), that is, Solomon; and Ididia, that is, beloved of the Lord; and the name by which he is now called, Coeleth, that is, Ecclesiastes. Now Ecclesiastes is the name, in the Greek language, for one who gathers an assembly, that is, a church: one whom we can call a preacher (concionator), because he speaks to the people and his speech is directed not specially to one person but generally to all. Further, he was called peaceable and beloved o...f the Lord because in his reign there was peace and the Lord loved him. For the forty-fourth (45th) and the seventy-first (72nd) psalms too are headed with the title "of the beloved" and "of the peaceable". And although these psalms, since they pertain to the prophecy of Christ and of the Church, go beyond the happiness and the power of Solomon, yet according to the history they were written about Solomon.
He, accordingly, matching the number of his names, published three volumes: Proverbs, Ecclesiastes, the Song of Songs. In Proverbs he teaches the little one and instructs him, as it were, in his duties by means of maxims; which is why his speech is so often addressed again to his son. In Ecclesiastes, however, he trains a man of mature age not to think that anything in the affairs of the world is lasting, but that all that we see is perishable and brief. Finally, in the Song of Songs, he joins the man now perfected, who has trodden the world underfoot and is prepared, to the embraces of the Bridegroom. For unless we first leave our vices and, renouncing the pomp of the world, make ourselves ready and unencumbered for the coming of Christ, we cannot say: Let him kiss me with the kiss of his mouth. Not far from this order of teaching, the philosophers too instruct their followers: first they teach ethics, then they expound physics; and whomever they perceive to have made progress in these, they lead on as far as theology.
This too must be noted with some care: that across the three books the title of the author differs. For in Proverbs it is set down: The proverbs of Solomon, the son of David, king of Israel. But in Ecclesiastes: The words of Ecclesiastes, the son of David, king of Jerusalem; for Israel is superfluous here, and it is wrongly found in the Greek and Latin copies. In the Song of Songs, however, neither son of David nor king of Israel or of Jerusalem is set at the head, but only The Song of Songs of Solomon. For just as Proverbs and elementary instruction belong to the twelve tribes and to all Israel, and as contempt of the world suits none but the citizens of the mother city, that is, the inhabitants of Jerusalem, so the Song of Songs properly concerns those who desire only the things above. With beginners and those making progress, both a father's dignity and the authority of his own kingdom are rightly claimed. But with the perfect, where the disciple is taught not by fear but by love, his own name suffices, and he is an equal teacher and does not know himself to be a king. So much, for now, according to the letter.
But according to the spiritual understanding, the peaceable one, and the beloved of God the Father, and our Ecclesiastes, is Christ, who, having destroyed the middle wall and making void the enmities in the flesh, made both one, saying: My peace I give to you, my peace I leave to you. Of him the Father spoke to the disciples: This is, he says, my beloved Son, in whom I am well pleased; hear him. He is the head of the whole Church; speaking not to the synagogue of the Jews but to the multitude of the nations, he is king of the Jerusalem built of living stones: not of that one of which he himself says: Jerusalem, Jerusalem, you who kill the prophets; and: Behold, your house will be left to you deserted, but of that one by which he forbids us to swear, because it is the city of the great king. This is the son of David to whom the blind men in the Gospel cried out: Have mercy on us, son of David; and the whole crowd resounded with one harmonious voice: Hosanna to the son of David. Accordingly, the word of God does not come to him, as it came to Jeremiah and the other prophets; but because he is rich, and a king, and powerful – he himself, indeed, is the Word and the Wisdom and the other powers – he speaks words to the men of the Church, he imparts words to the apostles, of whom it is sung in the psalm: Their sound went out into all the earth, and their words to the ends of the world. Wrongly, therefore, do some suppose that we are incited by this book to pleasure and luxury, when on the contrary it teaches that all that we see in the world is vain, and that we ought not to seek eagerly after things that perish even while they are held.
Source: Commentary on Ecclesiastes