<commit_before>package domainapp.dom.modules.atencion;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.VersionStrategy;

import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.annotation.BookmarkPolicy;
import org.apache.isis.applib.annotation.DomainObject;
import org.apache.isis.applib.annotation.DomainObjectLayout;
import org.apache.isis.applib.annotation.MemberOrder;
import domainapp.dom.modules.servicios.E_estado;

/**
 * @author PlusCel
 *
 */
@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(
        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
         column="id")
@javax.jdo.annotations.Version(
        strategy=VersionStrategy.VERSION_NUMBER, 
        column="version")
@javax.jdo.annotations.Queries({

        @javax.jdo.annotations.Query(
                name = "find", language = "JDOQL",
                value = "SELECT "
                        + "FROM domainapp.dom.modules.atencion.Equipo "),
        @javax.jdo.annotations.Query(name = "findByMarca", language = "JDOQL", value = "SELECT "
                    			+ "FROM dom.modules.atencion.Equipo " + "WHERE marca.abreviatura == :marca"),
        @javax.jdo.annotations.Query(
                name = "findByModelo", language = "JDOQL",
                value = "SELECT "
                        + "FROM domainapp.dom.modules.atencion.Equipo "
                        + "WHERE modelo.Abreviatura.startsWith(:modelo)")
})


@javax.jdo.annotations.Unique(name="Equipo_name_UNQ", members = {"marca","modelo"})

@DomainObject(
		bounded=true,
        objectType = "EQUIPO"
)
@DomainObjectLayout(
        bookmarking = BookmarkPolicy.AS_ROOT
)

public class Equipo {
	public DomainObjectContainer getContainer() {
		return container;
	}

	public void setContainer(DomainObjectContainer container) {
		this.container = container;
	}
	
	public String title() {
		return getMarca() + ", " + getModelo();
	}

    
    private Marca marca;
    
    @Persistent
	@MemberOrder(sequence = "1")
    @javax.jdo.annotations.Column(allowsNull="false")
	
    public Marca getMarca() {
        return marca;
    }
    public void setMarca(final Marca marca) {
        this.marca = marca;
    }
    
    private Modelo modelo;
    @Persistent
	@MemberOrder(sequence = "2")
    @javax.jdo.annotations.Column(allowsNull="false")
    public Modelo getModelo() {
        return modelo;
    }
    public void setModelo(final Modelo modelo) {<commit_msg>modifico titulo de equipo<commit_after>package domainapp.dom.modules.atencion;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.VersionStrategy;

import org.apache.isis.applib.DomainObjectContainer;
import org.apache.isis.applib.annotation.BookmarkPolicy;
import org.apache.isis.applib.annotation.DomainObject;
import org.apache.isis.applib.annotation.DomainObjectLayout;
import org.apache.isis.applib.annotation.MemberOrder;
import domainapp.dom.modules.servicios.E_estado;

/**
 * @author PlusCel
 *
 */
@javax.jdo.annotations.PersistenceCapable(identityType=IdentityType.DATASTORE)
@javax.jdo.annotations.DatastoreIdentity(
        strategy=javax.jdo.annotations.IdGeneratorStrategy.IDENTITY,
         column="id")
@javax.jdo.annotations.Version(
        strategy=VersionStrategy.VERSION_NUMBER, 
        column="version")
@javax.jdo.annotations.Queries({

        @javax.jdo.annotations.Query(
                name = "find", language = "JDOQL",
                value = "SELECT "
                        + "FROM domainapp.dom.modules.atencion.Equipo "),
        @javax.jdo.annotations.Query(name = "findByMarca", language = "JDOQL", value = "SELECT "
                    			+ "FROM dom.modules.atencion.Equipo " + "WHERE marca.abreviatura == :marca"),
        @javax.jdo.annotations.Query(
                name = "findByModelo", language = "JDOQL",
                value = "SELECT "
                        + "FROM domainapp.dom.modules.atencion.Equipo "
                        + "WHERE modelo.Abreviatura.startsWith(:modelo)")
})


@javax.jdo.annotations.Unique(name="Equipo_name_UNQ", members = {"marca","modelo"})

@DomainObject(
		bounded=true,
        objectType = "EQUIPO"
)
@DomainObjectLayout(
        bookmarking = BookmarkPolicy.AS_ROOT
)

public class Equipo {
	public DomainObjectContainer getContainer() {
		return container;
	}

	public void setContainer(DomainObjectContainer container) {
		this.container = container;
	}
	
	public String title() {		
		return marca.getDescripcion() + ", " + modelo.getDescripcion();
	}
    
    private Marca marca;
    
    @Persistent
	@MemberOrder(sequence = "1")
    @javax.jdo.annotations.Column(allowsNull="false")
	
    public Marca getMarca() {
        return marca;
    }
    public void setMarca(final Marca marca) {
        this.marca = marca;
    }
    
    private Modelo modelo;
    @Persistent
	@MemberOrder(sequence = "2")
    @javax.jdo.annotations.Column(allowsNull="false")
    public Modelo getModelo() {
        return modelo;
    }
    public void setModelo(final Modelo modelo) {
{'fraction_non_alphanumeric': 0.11724005381510667, 'fraction_numerical': 0.000768787238131847, 'mean_word_length': 3.1008668242710797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3400526', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1646, 'n_words': 257}