# Enabling and Disabling Java File Generation

Click the Java and XML files button or the XML files only button. The XML files are where JDeveloper stores the metadata for the generated objects. Typically, Java files are where the business logic is implemented. You might not have to generate Java files if:

- You encapsulate the business logic in the validator classes

- Your entity objects do not need validation