Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mapping): add support for embeddables #514

Merged
merged 1 commit into from
Apr 26, 2020
Merged

feat(mapping): add support for embeddables #514

merged 1 commit into from
Apr 26, 2020

Commits on Apr 26, 2020

  1. feat(mapping): add support for embeddables

    Embeddables are classes which are not entities themselves, but are embedded in entities.
    
    ```typescript
    @embeddable()
    class Address {
    
      @Property()
      street!: string;
    
      @Property()
      city!: string;
    
      @Property()
      country!: string;
    
    }
    
    @entity()
    class User {
    
      @PrimaryKey()
      id!: number;
    
      @Embedded(() => Address)
      address!: Address;
    
    }
    ```
    B4nan committed Apr 26, 2020
    Configuration menu
    Copy the full SHA
    113c52a View commit details
    Browse the repository at this point in the history