Started by Peter DanielsSep 25, 2021

Open
how to add columns to database table that are not contained in Entity

0 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWES SHARE

If I want to have DB table with scheme id|column1|rest of columns...

such as:

@Entity
@Table(name = "SampleEntity")
class SampleEntity(
@Id @GeneratedValue val id: Long,
)

how can I add columns to table such that the table has these columns, but my entity does not?

I would like to be able to add these columns programmatically with a for loop. But any pointers would be appreciated.

0 Replies

You must be Logged in to reply
Techiio

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan