LINQ to Entities does not recognize the method ‘Int32 Parse(System.String)’ method, and this method cannot be translated into a store expression

in Linq to Entity, you should use the methods in your query which is supported by your provider to convert them to expression tree to run on your Data Base side. all providers must support some methods by default called Canonical Functions (Read More Here), and also you can define your user defined function and … Read more

JPA, How to use the same class (entity) to map different tables?

Not sure you can do it exactly as you want but you can use inheritance to produce the same result. AbsT has all the fields but no @Table annotation Ta and Tb inherit from AbsT and have an @Table annotation each Use @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) in AbsT. Sample code: @Entity @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS) public class abstract AbsT { @Id … Read more

Entity Framework – Is there a way to automatically eager-load child entities without Include()?

No you cannot do that in mapping. Typical workaround is simple extension method: public static IQueryable<Car> BuildCar(this IQueryable<Car> query) { return query.Include(x => x.Wheels) .Include(x => x.Doors) .Include(x => x.Engine) .Include(x => x.Bumper) .Include(x => x.Windows); } Now every time you want to query Car with all relations you will just do: var query = … Read more

find out the differences between two java beans for version tracking

You could use Apache Commons Beanutils. Here’s a simple example: package at.percom.temp.zztests; import java.lang.reflect.InvocationTargetException; import org.apache.commons.beanutils.BeanMap; import org.apache.commons.beanutils.PropertyUtilsBean; import java.util.Arrays; import java.util.HashSet; import java.util.Objects; import java.util.Set; public class Main { public static void main(String[] args) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { Main main = new Main(); main.start(); } public void start() throws IllegalAccessException, InvocationTargetException, NoSuchMethodException { … Read more