Package org.openbravo.base.gen
Class GenerateEntitiesTask
- java.lang.Object
-
- org.openbravo.base.gen.GenerateEntitiesTask
-
public class GenerateEntitiesTask extends Object
Task generates the entities using the freemarker template engine.- Author:
- Martin Taal, Stefan Huehner
-
-
Constructor Summary
Constructors Constructor Description GenerateEntitiesTask()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formatSqlLogic(String sqlLogic)
String
getDeprecationMessage(Property p)
boolean
isDeprecated(Entity e)
Checks if an entity is set as deprecatedboolean
isDeprecated(Property p)
Checks if a proprerty is deprecated, it can be deprecated in Application Dictionary or the entity it references could be deprecatedstatic void
main(String[] args)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
isDeprecated
public boolean isDeprecated(Entity e)
Checks if an entity is set as deprecated- Parameters:
e
- Entity to check deprecation- Returns:
- True if entity is deprecated, false otherwise
-
isDeprecated
public boolean isDeprecated(Property p)
Checks if a proprerty is deprecated, it can be deprecated in Application Dictionary or the entity it references could be deprecated- Parameters:
p
- Property to check deprecation- Returns:
- True if property or property target entity are deprecated and generate deprecate property is set to true in Openbravo.properties, false otherwise
-
-