Browse Source
Commit 6316a35 introduced a regression for property names starting with
multiple uppercase letters (such as setEMail(...)).
This commit fixes that regression and includes an additional test to
cover this case.
See gh-27929
Closes gh-27941
pull/28119/head
4 changed files with 108 additions and 5 deletions
@ -0,0 +1,78 @@
@@ -0,0 +1,78 @@
|
||||
/* |
||||
* Copyright 2002-2022 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
*/ |
||||
|
||||
package org.springframework.jdbc.core.test; |
||||
|
||||
import java.math.BigDecimal; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author Thomas Risberg |
||||
* @author Marten Deinum |
||||
*/ |
||||
public class EmailPerson { |
||||
|
||||
private String name; |
||||
|
||||
private long age; |
||||
|
||||
private Date birth_date; |
||||
|
||||
private BigDecimal balance; |
||||
|
||||
private String eMail; |
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
|
||||
public void setName(String name) { |
||||
this.name = name; |
||||
} |
||||
|
||||
public long getAge() { |
||||
return age; |
||||
} |
||||
|
||||
public void setAge(long age) { |
||||
this.age = age; |
||||
} |
||||
|
||||
public Date getBirth_date() { |
||||
return birth_date; |
||||
} |
||||
|
||||
public void setBirth_date(Date birth_date) { |
||||
this.birth_date = birth_date; |
||||
} |
||||
|
||||
public BigDecimal getBalance() { |
||||
return balance; |
||||
} |
||||
|
||||
public void setBalance(BigDecimal balance) { |
||||
this.balance = balance; |
||||
} |
||||
|
||||
public void setEMail(String email) { |
||||
this.eMail=email; |
||||
} |
||||
|
||||
public String getEMail() { |
||||
return this.eMail; |
||||
} |
||||
|
||||
} |
||||
Loading…
Reference in new issue