Foreign key not saving in child table in a One-to-many relationshipWrong ordering in generated table in jpaorg.springframework.orm.hibernate3.HibernateQueryException - HibernateTemplatewant to add two different tables(classes) in one hibernate criteriaHibernate: ManyToMany inverse DeleteI am getting the following message in the Console: Hibernate:alter table UserDetails_listofAddress drop constraint FK_a254xtntunnm64c0vo7oha0olUsing RowMapper and JdbcTemplate got NullPointerExceptionMappingJackson2HttpMessageConverter Can not find a (Map) Key deserializer for typeHibernate : Why FetchType.LAZY-annotated collection property eagerly loading?JPA Query for collection map join tableOneToMany Relationship with 3 entity class using JPA and spring boot
Does the category of finite dimensional free modules over a principal ideal domain have all finite colimits?
Two researchers want to work on the same extension to my paper. Who to help?
LocalDate.plus Incorrect Answer
Was there a contingency plan in place if Little Boy failed to detonate?
Cropping a message using array splits
Control variables and other independent variables
Is there a faster way to calculate Abs[z]^2 numerically?
Looking for a simple way to manipulate one column of a matrix
International Code of Ethics for order of co-authors in research papers
Is it a bad idea to replace pull-up resistors with hard pull-ups?
Why use steam instead of just hot air?
Delta TSA-Precheck status removed
What does it mean with the ask price is below the last price?
On studying Computer Science vs. Software Engineering to become a proficient coder
Noob at soldering, can anyone explain why my circuit won't work?
Why did God specifically target the firstborn in the 10th plague (Exodus 12:29-36)?
Can you book a one-way ticket to the UK on a visa?
Was there ever any real use for a 6800-based Apple I?
Is there enough time to Planar Bind a creature conjured by a one hour duration spell?
What are the ramifications of setting ARITHABORT ON for all connections in SQL Server?
How to make a language evolve quickly?
Should these notes be played as a chord or one after another?
How did Thanos not realise this had happened at the end of Endgame?
Washer drain pipe overflow
Foreign key not saving in child table in a One-to-many relationship
Wrong ordering in generated table in jpaorg.springframework.orm.hibernate3.HibernateQueryException - HibernateTemplatewant to add two different tables(classes) in one hibernate criteriaHibernate: ManyToMany inverse DeleteI am getting the following message in the Console: Hibernate:alter table UserDetails_listofAddress drop constraint FK_a254xtntunnm64c0vo7oha0olUsing RowMapper and JdbcTemplate got NullPointerExceptionMappingJackson2HttpMessageConverter Can not find a (Map) Key deserializer for typeHibernate : Why FetchType.LAZY-annotated collection property eagerly loading?JPA Query for collection map join tableOneToMany Relationship with 3 entity class using JPA and spring boot
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am developing an REST API application using spring boot and is struck up with the One to Many mapping while using mappedBy property.
I have User class and Usermeata class, a user can have more than one usermeta.
While the program successfully save the foreign while using JoinColumn, I want to know what mistake I am committing while using mappedby.
Here is my code:
User Entity class:
@Entity
@Table(name="User")
public class User
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userId;
@Column(unique=true)
private String username;
@Column(unique=true)
private String emailId;
private String password;
private String firstName;
private String lastName;
private String phoneNo;
@OneToMany(fetch=FetchType.EAGER,cascade=CascadeType.ALL,mappedBy="user")
// @JoinColumn(name="user_id")
private List<UserMeta> userMetaList=new ArrayList();
public List<UserMeta> getUserMetaList()
return userMetaList;
public void setUserMetaList(List<UserMeta> userMetaList)
this.userMetaList = userMetaList;
public Long getUserId()
return userId;
public void setUserId(Long userId)
this.userId = userId;
public String getUsername()
return username;
public void setUsername(String username)
this.username = username;
public String getEmailId()
return emailId;
public void setEmailId(String emailId)
this.emailId = emailId;
public String getPassword()
return password;
public void setPassword(String password)
this.password = password;
public String getFirstName()
return firstName;
public void setFirstName(String firstName)
this.firstName = firstName;
public String getLastName()
return lastName;
public void setLastName(String lastName)
this.lastName = lastName;
public String getPhoneNo()
return phoneNo;
public void setPhoneNo(String phoneNo)
this.phoneNo = phoneNo;
UserMeta class:
@Entity
public class UserMeta
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userMetaId;
@ManyToOne
@JoinColumn(name="user_id")
private User user;
private String _key;
private String _value;
public Long getUserMetaId()
return userMetaId;
public void setUserMetaId(Long userMetaId)
this.userMetaId = userMetaId;
public User getUser()
return user;
public void setUser(User user)
this.user = user;
public String get_key()
return _key;
public void set_key(String _key)
this._key = _key;
public String get_value()
return _value;
public void set_value(String _value)
this._value = _value;
UserService.class
@Service
public class UserService
@Autowired
private UserRepository userRepository;
public User getUser(Long userId)
return userRepository.getOne(userId);
public List<User> getAllUser()
return userRepository.findAll();
public User addUser(User user)
return userRepository.save(user);
public void removeUser(User user)
userRepository.delete(user);
public void updateUser(User user)
userRepository.save(user);
POST request:
"username":"myusername",
"emailId":"myemailid@gmail.com1",
"password":"2323@123",
"firstName":"myfname",
"lastName":"mlname",
"phoneNo":"000000",
"userMetaList":[
"_key":"api_key",
"_value":"api_key_value"
,
"_key":"prop1",
"_value":"val1"
]
Now the tables are created and updated with the values, however the column user_id in the table usermeta is always null..
java spring hibernate spring-boot
|
show 4 more comments
I am developing an REST API application using spring boot and is struck up with the One to Many mapping while using mappedBy property.
I have User class and Usermeata class, a user can have more than one usermeta.
While the program successfully save the foreign while using JoinColumn, I want to know what mistake I am committing while using mappedby.
Here is my code:
User Entity class:
@Entity
@Table(name="User")
public class User
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userId;
@Column(unique=true)
private String username;
@Column(unique=true)
private String emailId;
private String password;
private String firstName;
private String lastName;
private String phoneNo;
@OneToMany(fetch=FetchType.EAGER,cascade=CascadeType.ALL,mappedBy="user")
// @JoinColumn(name="user_id")
private List<UserMeta> userMetaList=new ArrayList();
public List<UserMeta> getUserMetaList()
return userMetaList;
public void setUserMetaList(List<UserMeta> userMetaList)
this.userMetaList = userMetaList;
public Long getUserId()
return userId;
public void setUserId(Long userId)
this.userId = userId;
public String getUsername()
return username;
public void setUsername(String username)
this.username = username;
public String getEmailId()
return emailId;
public void setEmailId(String emailId)
this.emailId = emailId;
public String getPassword()
return password;
public void setPassword(String password)
this.password = password;
public String getFirstName()
return firstName;
public void setFirstName(String firstName)
this.firstName = firstName;
public String getLastName()
return lastName;
public void setLastName(String lastName)
this.lastName = lastName;
public String getPhoneNo()
return phoneNo;
public void setPhoneNo(String phoneNo)
this.phoneNo = phoneNo;
UserMeta class:
@Entity
public class UserMeta
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userMetaId;
@ManyToOne
@JoinColumn(name="user_id")
private User user;
private String _key;
private String _value;
public Long getUserMetaId()
return userMetaId;
public void setUserMetaId(Long userMetaId)
this.userMetaId = userMetaId;
public User getUser()
return user;
public void setUser(User user)
this.user = user;
public String get_key()
return _key;
public void set_key(String _key)
this._key = _key;
public String get_value()
return _value;
public void set_value(String _value)
this._value = _value;
UserService.class
@Service
public class UserService
@Autowired
private UserRepository userRepository;
public User getUser(Long userId)
return userRepository.getOne(userId);
public List<User> getAllUser()
return userRepository.findAll();
public User addUser(User user)
return userRepository.save(user);
public void removeUser(User user)
userRepository.delete(user);
public void updateUser(User user)
userRepository.save(user);
POST request:
"username":"myusername",
"emailId":"myemailid@gmail.com1",
"password":"2323@123",
"firstName":"myfname",
"lastName":"mlname",
"phoneNo":"000000",
"userMetaList":[
"_key":"api_key",
"_value":"api_key_value"
,
"_key":"prop1",
"_value":"val1"
]
Now the tables are created and updated with the values, however the column user_id in the table usermeta is always null..
java spring hibernate spring-boot
Post the code which you use to save them.
– LppEdd
Mar 23 at 10:58
1
This question has been asked a million times already. The user_id column is null because theuser
field of your UserMeta objects is null. It's as simple as that.
– JB Nizet
Mar 23 at 10:58
I looked up google and stackoverflow a lot of times, unfortunately nothing seemed to work (maybe I implemented in the wrong way, hence my last resort was to post the question myself.) . How do I assign user to the user field in Usermeta?
– tushar attar
Mar 23 at 11:14
1
How do I assign user to the user field in Usermeta: by callinguserMeta.setuser(theOwningUser)
. why does the application works fine while using @JoinTable instead of mappedBy: because i that case, you have a unidirectional association, where UserMeta doesn't even have a user field, and where the owning side of the association is User.userMetaList, and not UserMeta.user. Read the documentation. It's all explained there.
– JB Nizet
Mar 23 at 11:28
1
No. It's just... good naming: the method adds a UserMeta, so you name the methodaddUserMeta
. If the method started a car engine, you would name itstartCarEngine
.
– JB Nizet
Mar 23 at 13:30
|
show 4 more comments
I am developing an REST API application using spring boot and is struck up with the One to Many mapping while using mappedBy property.
I have User class and Usermeata class, a user can have more than one usermeta.
While the program successfully save the foreign while using JoinColumn, I want to know what mistake I am committing while using mappedby.
Here is my code:
User Entity class:
@Entity
@Table(name="User")
public class User
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userId;
@Column(unique=true)
private String username;
@Column(unique=true)
private String emailId;
private String password;
private String firstName;
private String lastName;
private String phoneNo;
@OneToMany(fetch=FetchType.EAGER,cascade=CascadeType.ALL,mappedBy="user")
// @JoinColumn(name="user_id")
private List<UserMeta> userMetaList=new ArrayList();
public List<UserMeta> getUserMetaList()
return userMetaList;
public void setUserMetaList(List<UserMeta> userMetaList)
this.userMetaList = userMetaList;
public Long getUserId()
return userId;
public void setUserId(Long userId)
this.userId = userId;
public String getUsername()
return username;
public void setUsername(String username)
this.username = username;
public String getEmailId()
return emailId;
public void setEmailId(String emailId)
this.emailId = emailId;
public String getPassword()
return password;
public void setPassword(String password)
this.password = password;
public String getFirstName()
return firstName;
public void setFirstName(String firstName)
this.firstName = firstName;
public String getLastName()
return lastName;
public void setLastName(String lastName)
this.lastName = lastName;
public String getPhoneNo()
return phoneNo;
public void setPhoneNo(String phoneNo)
this.phoneNo = phoneNo;
UserMeta class:
@Entity
public class UserMeta
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userMetaId;
@ManyToOne
@JoinColumn(name="user_id")
private User user;
private String _key;
private String _value;
public Long getUserMetaId()
return userMetaId;
public void setUserMetaId(Long userMetaId)
this.userMetaId = userMetaId;
public User getUser()
return user;
public void setUser(User user)
this.user = user;
public String get_key()
return _key;
public void set_key(String _key)
this._key = _key;
public String get_value()
return _value;
public void set_value(String _value)
this._value = _value;
UserService.class
@Service
public class UserService
@Autowired
private UserRepository userRepository;
public User getUser(Long userId)
return userRepository.getOne(userId);
public List<User> getAllUser()
return userRepository.findAll();
public User addUser(User user)
return userRepository.save(user);
public void removeUser(User user)
userRepository.delete(user);
public void updateUser(User user)
userRepository.save(user);
POST request:
"username":"myusername",
"emailId":"myemailid@gmail.com1",
"password":"2323@123",
"firstName":"myfname",
"lastName":"mlname",
"phoneNo":"000000",
"userMetaList":[
"_key":"api_key",
"_value":"api_key_value"
,
"_key":"prop1",
"_value":"val1"
]
Now the tables are created and updated with the values, however the column user_id in the table usermeta is always null..
java spring hibernate spring-boot
I am developing an REST API application using spring boot and is struck up with the One to Many mapping while using mappedBy property.
I have User class and Usermeata class, a user can have more than one usermeta.
While the program successfully save the foreign while using JoinColumn, I want to know what mistake I am committing while using mappedby.
Here is my code:
User Entity class:
@Entity
@Table(name="User")
public class User
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userId;
@Column(unique=true)
private String username;
@Column(unique=true)
private String emailId;
private String password;
private String firstName;
private String lastName;
private String phoneNo;
@OneToMany(fetch=FetchType.EAGER,cascade=CascadeType.ALL,mappedBy="user")
// @JoinColumn(name="user_id")
private List<UserMeta> userMetaList=new ArrayList();
public List<UserMeta> getUserMetaList()
return userMetaList;
public void setUserMetaList(List<UserMeta> userMetaList)
this.userMetaList = userMetaList;
public Long getUserId()
return userId;
public void setUserId(Long userId)
this.userId = userId;
public String getUsername()
return username;
public void setUsername(String username)
this.username = username;
public String getEmailId()
return emailId;
public void setEmailId(String emailId)
this.emailId = emailId;
public String getPassword()
return password;
public void setPassword(String password)
this.password = password;
public String getFirstName()
return firstName;
public void setFirstName(String firstName)
this.firstName = firstName;
public String getLastName()
return lastName;
public void setLastName(String lastName)
this.lastName = lastName;
public String getPhoneNo()
return phoneNo;
public void setPhoneNo(String phoneNo)
this.phoneNo = phoneNo;
UserMeta class:
@Entity
public class UserMeta
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long userMetaId;
@ManyToOne
@JoinColumn(name="user_id")
private User user;
private String _key;
private String _value;
public Long getUserMetaId()
return userMetaId;
public void setUserMetaId(Long userMetaId)
this.userMetaId = userMetaId;
public User getUser()
return user;
public void setUser(User user)
this.user = user;
public String get_key()
return _key;
public void set_key(String _key)
this._key = _key;
public String get_value()
return _value;
public void set_value(String _value)
this._value = _value;
UserService.class
@Service
public class UserService
@Autowired
private UserRepository userRepository;
public User getUser(Long userId)
return userRepository.getOne(userId);
public List<User> getAllUser()
return userRepository.findAll();
public User addUser(User user)
return userRepository.save(user);
public void removeUser(User user)
userRepository.delete(user);
public void updateUser(User user)
userRepository.save(user);
POST request:
"username":"myusername",
"emailId":"myemailid@gmail.com1",
"password":"2323@123",
"firstName":"myfname",
"lastName":"mlname",
"phoneNo":"000000",
"userMetaList":[
"_key":"api_key",
"_value":"api_key_value"
,
"_key":"prop1",
"_value":"val1"
]
Now the tables are created and updated with the values, however the column user_id in the table usermeta is always null..
java spring hibernate spring-boot
java spring hibernate spring-boot
edited Mar 23 at 11:21
tushar attar
asked Mar 23 at 10:53
tushar attartushar attar
285
285
Post the code which you use to save them.
– LppEdd
Mar 23 at 10:58
1
This question has been asked a million times already. The user_id column is null because theuser
field of your UserMeta objects is null. It's as simple as that.
– JB Nizet
Mar 23 at 10:58
I looked up google and stackoverflow a lot of times, unfortunately nothing seemed to work (maybe I implemented in the wrong way, hence my last resort was to post the question myself.) . How do I assign user to the user field in Usermeta?
– tushar attar
Mar 23 at 11:14
1
How do I assign user to the user field in Usermeta: by callinguserMeta.setuser(theOwningUser)
. why does the application works fine while using @JoinTable instead of mappedBy: because i that case, you have a unidirectional association, where UserMeta doesn't even have a user field, and where the owning side of the association is User.userMetaList, and not UserMeta.user. Read the documentation. It's all explained there.
– JB Nizet
Mar 23 at 11:28
1
No. It's just... good naming: the method adds a UserMeta, so you name the methodaddUserMeta
. If the method started a car engine, you would name itstartCarEngine
.
– JB Nizet
Mar 23 at 13:30
|
show 4 more comments
Post the code which you use to save them.
– LppEdd
Mar 23 at 10:58
1
This question has been asked a million times already. The user_id column is null because theuser
field of your UserMeta objects is null. It's as simple as that.
– JB Nizet
Mar 23 at 10:58
I looked up google and stackoverflow a lot of times, unfortunately nothing seemed to work (maybe I implemented in the wrong way, hence my last resort was to post the question myself.) . How do I assign user to the user field in Usermeta?
– tushar attar
Mar 23 at 11:14
1
How do I assign user to the user field in Usermeta: by callinguserMeta.setuser(theOwningUser)
. why does the application works fine while using @JoinTable instead of mappedBy: because i that case, you have a unidirectional association, where UserMeta doesn't even have a user field, and where the owning side of the association is User.userMetaList, and not UserMeta.user. Read the documentation. It's all explained there.
– JB Nizet
Mar 23 at 11:28
1
No. It's just... good naming: the method adds a UserMeta, so you name the methodaddUserMeta
. If the method started a car engine, you would name itstartCarEngine
.
– JB Nizet
Mar 23 at 13:30
Post the code which you use to save them.
– LppEdd
Mar 23 at 10:58
Post the code which you use to save them.
– LppEdd
Mar 23 at 10:58
1
1
This question has been asked a million times already. The user_id column is null because the
user
field of your UserMeta objects is null. It's as simple as that.– JB Nizet
Mar 23 at 10:58
This question has been asked a million times already. The user_id column is null because the
user
field of your UserMeta objects is null. It's as simple as that.– JB Nizet
Mar 23 at 10:58
I looked up google and stackoverflow a lot of times, unfortunately nothing seemed to work (maybe I implemented in the wrong way, hence my last resort was to post the question myself.) . How do I assign user to the user field in Usermeta?
– tushar attar
Mar 23 at 11:14
I looked up google and stackoverflow a lot of times, unfortunately nothing seemed to work (maybe I implemented in the wrong way, hence my last resort was to post the question myself.) . How do I assign user to the user field in Usermeta?
– tushar attar
Mar 23 at 11:14
1
1
How do I assign user to the user field in Usermeta: by calling
userMeta.setuser(theOwningUser)
. why does the application works fine while using @JoinTable instead of mappedBy: because i that case, you have a unidirectional association, where UserMeta doesn't even have a user field, and where the owning side of the association is User.userMetaList, and not UserMeta.user. Read the documentation. It's all explained there.– JB Nizet
Mar 23 at 11:28
How do I assign user to the user field in Usermeta: by calling
userMeta.setuser(theOwningUser)
. why does the application works fine while using @JoinTable instead of mappedBy: because i that case, you have a unidirectional association, where UserMeta doesn't even have a user field, and where the owning side of the association is User.userMetaList, and not UserMeta.user. Read the documentation. It's all explained there.– JB Nizet
Mar 23 at 11:28
1
1
No. It's just... good naming: the method adds a UserMeta, so you name the method
addUserMeta
. If the method started a car engine, you would name it startCarEngine
.– JB Nizet
Mar 23 at 13:30
No. It's just... good naming: the method adds a UserMeta, so you name the method
addUserMeta
. If the method started a car engine, you would name it startCarEngine
.– JB Nizet
Mar 23 at 13:30
|
show 4 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55312950%2fforeign-key-not-saving-in-child-table-in-a-one-to-many-relationship%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55312950%2fforeign-key-not-saving-in-child-table-in-a-one-to-many-relationship%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Post the code which you use to save them.
– LppEdd
Mar 23 at 10:58
1
This question has been asked a million times already. The user_id column is null because the
user
field of your UserMeta objects is null. It's as simple as that.– JB Nizet
Mar 23 at 10:58
I looked up google and stackoverflow a lot of times, unfortunately nothing seemed to work (maybe I implemented in the wrong way, hence my last resort was to post the question myself.) . How do I assign user to the user field in Usermeta?
– tushar attar
Mar 23 at 11:14
1
How do I assign user to the user field in Usermeta: by calling
userMeta.setuser(theOwningUser)
. why does the application works fine while using @JoinTable instead of mappedBy: because i that case, you have a unidirectional association, where UserMeta doesn't even have a user field, and where the owning side of the association is User.userMetaList, and not UserMeta.user. Read the documentation. It's all explained there.– JB Nizet
Mar 23 at 11:28
1
No. It's just... good naming: the method adds a UserMeta, so you name the method
addUserMeta
. If the method started a car engine, you would name itstartCarEngine
.– JB Nizet
Mar 23 at 13:30