What is the journal entry when purchasing a company?

Debit assets
Credit liabilities
credit cash / bank (balance amount)