If a query is needed that can’t be represented with the standard Spring Data finder methods (e.g. findBy…), how should it be implemented on the Repository?
Responda
Adding a method to the Repository using the @Query annotation
Combine the results of several findBy methods programmatically
Adding a method to the Repository using the @NamedQuery or @NativeNamedQuery annotation
Adding a QueryDSL method in a Repository custom implementation
Reference a stored procedure using the @NamedStoredProcedureQuery annotation
Questão 2
Questão
Does the template support Cassandra migrations?
Responda
True
False
Questão 3
Questão
What type of classes are used to create test data?
Responda
Converters
Generators
TestData
This does not exist in the template at this time
TestFixture
Questão 4
Questão
Which annotation is used on Taulia Domain Objects to provide a nice toString representation of the object.
Responda
@ToString
@Show
@Entity
@TDO
Import the apache commons lang library and use the ToStringBuilder.reflectionToString method
Questão 5
Questão
What actions must take place to add an attribute value property to your TDO object.
Responda
Ensure the table has an attribute-value storage container
Create a map to hold all the attribute values within the entity
Add the @AttributeValueContainer annotation to the class
Add getter and setter methods to the TDO that access the attribute value from a map within the TDO
Create a primitive field and add the @AttributeValue annotation on the field
Questão 6
Questão
What class should you extend for a TDO integration test?
Responda
GroovyTestCase
BaseIntegrationTdoTestCase
BasicTdoTestCase
GroovyIntegrationTestCase
Questão 7
Questão
Use TDOs as the objects that are passed into and out of public methods within an intapi.
Responda
True
False
Quer criar seus próprios Quizzesgratuitos com a GoConqr? Saiba mais.