#2349 - Rename Database.getBeanId() to beanId() with deprecation

This commit is contained in:
rbygrave committed 2021-09-03 09:32:47 +12:00
1 parent a5f9beabdf
commit 058e16d1a8
2 files changed
+11 -3

No files matched your search

+9 -1
View File
@@ -1238,10 +1238,18 @@ public final class DB {
/**
* Return the value of the Id property for a given bean.
*/
public static Object getBeanId(Object bean) {
public static Object beanId(Object bean) {
return getDefault().beanId(bean);
}
/**
* Deprecated migrate to beanId().
*/
@Deprecated
public static Object getBeanId(Object bean) {
return beanId(bean);
}
/**
* Return the manager of the level 2 cache ("L2" cache).
*/