Upgrade procedures from Liferay 7.3.5 to Liferay 7.4.3

[What I want to know] How to migrate “BeanPropertiesUtil.public static void copyProperties( Object source, Object target, String[] ignoreProperties)” from Liferay 7.3.x to Liferay 7.4.x.

[Current situation] In Liferay 7.3.x, we are using “BeanPropertiesUtil.public static void copyProperties( Object source, Object target, String[] ignoreProperties)”.

[Issues faced] In Liferay 7.4.x, “BeanPropertiesUtil.public static void copyProperties( Object source, Object target, String[] ignoreProperties)” does not exist, so it’s unclear what needs to be done during the upgrade.

[Post-migration environment]

  1. JDK 17

  2. Liferay 7.4.3

1 Answer

1

Hello @takumim,

I’ll defer this to someone who has more insight into this.

However, this method was deprecated starting from 7.3.10-u12 and has been completely removed as of 7.4.13-u19, with no direct replacement available. To proceed with the upgrade, you will need to rebuild the module for the target version.

public static void copyProperties(Object source, Object target, String ignoreProperties) {	
getBeanProperties().copyProperties(source, target, ignoreProperties);
}