1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How to store multiple objects into a single entity for MySQL?

Discussão em 'Outras Linguagens' iniciado por Stack, Janeiro 27, 2021.

  1. Stack

    Stack Membro Participativo

    I am writing a virtual banking app. In the app, every time a session is done I want to give the user a receipt with information about the transaction on it. The receipt is a java object and has its own table in the database with the account number acting as the primary key. The problem is, I do not know how to store multiple receipts for the same account number without having to create new rows in the table and repeat primary key values for the account number column. I have read that this is bad practice and would like to avoid it.

    Continue reading...

Compartilhe esta Página