How can an infinite relationship be displayed to best communicate that the set contains only one type?

I have a report dashboard that shows an apples to oranges ratio that is normalized to 1: x; B. 10 apples and 20 oranges is "1: 2".

How would I best display 0 apples 20 oranges?

  • "1: Infinity" is an option, but looks weird
  • "0:20" or "0: 1" should not be options, as a normalization in the form of "1: x" is required. In reality, however, the intention is to tell the user that this applies to this table cell there is "just oranges"

Token – Blogger API 4.0 nextPageToken does not generate the next set of posts

I use the Blogger API to get blog posts and get the next page token. In my understanding, you should include this key in the next request, but I keep getting the same posts, not the next. Regardless of whether or not I set the maximum, only 10 posts are returned.

Below is the initial call request, where I put a query to the search bar (empty status) searchPost), and I save the data in posts Status.

handleSubmit = (e) => {
   e.preventDefault();
  axios.get(`https://www.googleapis.com/blogger/v3/blogs/7439681026540002213/posts/search?q=${this.state.searchPost}&fetchBodies=true&fetchImages=true&orderBy=published&status=live&view=READER&key=${process.env.REACT_APP_BLOGGER_API}`)
  .then(res=>{
    this.setState({posts:res.data.items})
  })
  .catch(err=>{
    console.log(err)
  })
 }

I then made a method nextPage where it should make another call to get the next page and fill the status of the post with the new data (or at least that's what I think the code does).

nextPage = () => {
  axios.get(`https://www.googleapis.com/blogger/v3/blogs/7439681026540002213/posts/search?q=${this.state.searchPost}&fetchBodies=true&fetchImages=true&orderBy=published&status=live&view=READER&key=${process.env.REACT_APP_BLOGGER_API}&pageToken=CgkIChjAwbDpnCoQpbeF6Z_Pw59n`)
  .then(res => {
    this.setState({posts:res.data.items});
  })
  .catch(err=>{
    console.log(err)
  }
  )}

xna – How do I change a specific set of rendered buttons from gray to green?

I am a self-taught programmer.

I ran a Button class like this:

Texture texture;
Color color;
Color differentColor;

SpriteFont font;
...
button1 = new Button(texture, font, ... , color);
button2 = new Button(texture, font, ... , color);
...
button20 = new Button(texture, font, ... , color);

This button appears 20 times at a number of specific locations on the screen.

I want a set of 10 buttons in each level not to light up in a random green.

Level 1: Button 1,3,6,7,10,12,13,14,15,16 lights green (must be in this sequence)

Level 2: Button 2,5,6,7,9,11,13,14,19,20 lights green (must be in this sequence)

Level 3: etc …

There are 15 levels in total.

How do I do that in an intelligent way?

What I think might work:

Color() color1;
Color() color2;
...
Color() color20;

Repeat the spawn button 20 times and assign each level:

color1 = {Color.Green, Color.Gray, Color.Green... }
color2 = {Color.Gray, Color.Green, Color.Gray... }

I will add more functions to the button over time.
Will I benefit from using the command design pattern here?

Domain Name System – How do I properly set up DNS zone delegation for the _acme-challenge subdomain?

It's difficult to set up a DNS zone delegation for one of our subdomains.

We have a DNS record "_acme-challenge"This will change frequently, and this DNS record will be defined directly on our server, which will only act as the SECONDARY name server for this entry.

We need to delegate this record to our SECONDARY Name Server instead of having to manually change it in our MAIN DNS zone.

Please note that our SECONDARY Name Server is the same domain. "example.com".

Our domain name is registered with OVH: example.com

Our main DNS servers are at OVH:

  • ns15.ovh.net
  • dns15.ovh.net

Our domain.com content is hosted on a web server (not OVH) with the following IP address:
212.123.456.789

We have no problem with this DNS zone: Our domain and emails are working properly.

Our MAIN DNS zone at OVH is defined as follows (abbreviated for brevity):

$TTL 3600
@   IN SOA dns15.ovh.net. tech.ovh.net. (2019111705 86400 3600 3600000 300)
                       IN NS     ns15.ovh.net.
                       IN NS     dns15.ovh.net.
                       IN A      212.123.456.789
ftp                    IN CNAME  example.com.
mail                   IN A      212.123.456.789
www                    IN CNAME  example.com.

Our second DNS server has these always existing entries:

example.com.            NS      ns1.example.com.
ns1.example.com.        A       212.123.456.789
example.com.            NS      ns2.example.com.
ns2.example.com.        A       212.123.456.789

Our second DNS server regularly updates the following entry in its zone:

_acme-challenge.domain.com      TXT     HereIsTheTextContent

We tried to add the following records to OVH's main DNS zone to delegate this record to the SECONDARY name server, but were unsuccessful: _acme-challenge.domain.com does not ping at all.

ns1                    IN A      212.123.456.789
ns2                    IN A      212.123.456.789
_acme-challenge        IN NS     ns1.example.com.
_acme-challenge        IN NS     ns2.example.com.

We suspected that some sort of record is missing, but where?

  • Did we forget to add some records to our main DNS zone? (defined by OVH)
  • Did we forget to add some records to our SECONDARY DNS zone? (defined on our "domain.com" hosted on our server)

I would be glad if you could locate the error and give us a hint to make it work 🙂

Thank you very much

lo.logic – Why is Bourbaki's Epsilon calculus not suitable for set theory?

Does anyone give any insight into what A.R.D. Mathias von Bourbaki thinks? $ tau $Calculus (actually the same as Hilbert's $ varepsilon $-calculus) is not suitable for set theory, in particular due to incompleteness of set theory? I have completely read Bourbaki's theory of sets and Mathias' two articles on Bourbaki's system (1, 2), but still can not find a "real" logic error.

Especially Mathias mentioned that $ tau $-calculus works perfectly on closed systems, such as set theory models, but works problematically on incomplete systems like ZFC. But why? He cited many early publications by Bourbaki members in which they misused unprovable as false. But at least in the 1970s version of Theory of Sets, there is no such abuse.

For my understanding, $ tau $operator works like the FIND function in computer programming languages. It accepts the property and returns a return value. If such an element satisfies the property, there is a correct element. If no such element exists, it will return a particular element (it is still a real element, we can not say that it has no meaning at all). The quantifier $ exists xR (x): = R ( tau_x (R)) $ is actually the review of the returned item.

Also says Mathias in $ tau $-calculus, we can not discuss the concept of the right classes because they become the same. But, as we know, right classes in ZFC are not legal objects and can only be discussed in Metalogic.

What is the context of incompleteness and improper use of $ tau $Calculus in set theory? Is it just that Mathias 'dissatisfaction with the Bourbaki members' early misunderstanding of incompleteness has a negative impact on Set Theorist?

Manually create 40 HQ Social Profile Creations SEO backlinks or set up profiles for $ 5

Manually create 40 HQ Social Profile Creations SEO backlinks or set up profiles

Social media profiles are an impressive way to grow your business around the world. At this gig I create social media profiles with high PA-DA value for your website ranking. 30-180 high DA PA backlinks 100% manually created with your requirements. Social Profile Backlink is the fastest way to get higher page rankings like Google, Bing, Yahoo etc.

HOW IT WORKS:

I will manually back up your brand on popular social networking sites, providing all details such as logo, name, username, website, and so on.
I will create your digital footprint and complete a full online branding.

Use this service:

  1. All profiles associated with your website
  2. All profiles are checked by e-mail
  3. Will your business be ranked
  4. The work will be carried out using the white hat method.
  5. Extra fast delivery with Excel sheet
  6. 100% safe for your website
  7. 100% manual and high quality work.
  8. All profiles 70 Plus DA

PROPERTIES:
Protect your corporate brand by securing your username on social media
Control how your brand name is used online
The process is simple
We will do all the work

Why do you need this?
– Protect your company name from identity theft
– Trademark / Trademark Protection
– Good for SEO backlinks
– Best foundation links for new websites.

,

Web Development – Compromises between the complexity of monoliths and the micro-service architecture for web apps that offer a sophisticated feature set

I would like to create a greenfield application that consists of several modules, each of which offers a different functionality (ie, one performs one type of calculation, the other is an analysis dashboard, the other performs reporting functions, and so on). ). All these modules together form the software suite in which the individual modules are available via a "start screen". However, I would like to give the customer the opportunity to choose which modules to include in their final suite before deploying the application (ie, a selection process).

Each module thus basically complies with the "principle of individual responsibility" of Fowler. Given this strong business breakup by function, I thought of using a microservice architecture for this project. However, since architecture is not my strength, I was looking for help to weigh the impact of the pros and cons I researched.

My plan at the moment is the following: Create a Django backend that performs the functionality and then sends the transformed data through an API to a Vue.js frontend to consume. The deployment takes place on the local computers of the clients.

Would a microservice architecture style be suitable for such a project? On paper, it seems that the "segregation of business logic", which is a defining feature of the microservices architecture, is optimal for creating these self-contained and stateless apps, which could then be easily grouped into a suite, which means it would be you It is easily possible to cut certain parts of the code base if a customer decides he does not want a module.

However, as the application is not intended to be scalable or to support many future feature releases or updates in the future, it seems to me that some of the benefits of a microservice architecture apply Not apply to my application, such as:

  • Continuous provisioning at the microservice level without having to deploy the entire application for each update
  • Choosing the best language and framework for the task
  • Benefits for large development teams

However, my current concerns over the introduction of a microservice architecture are based on the fact that most standard processes, ranging from development to deployment, are complicated by this style:

  • The increased complexity of this style in terms of maintenance, request handling and communication between services for me as a single developer
  • Deployment issues with regard to containers and coordination between them are much more difficult to manage
  • Increase of total development time with single DB per module etc

Intuitively, it seems to me that the "separation of the business logic" of my application is basically in good agreement with the microservice architecture. However, in my personal estimation, the complexity involved will likely outweigh the benefits of these benefits. From now on, I tend to take a monolithic approach and simply disable access to the modules that the customer has not paid for. In this case, however, the product will ship with all the code in the code base.

Does this appraisal for those who have experience developing web apps based on microservices architectures appear to be appropriate for the particular application? Are there any obvious benefits to my use case that I forgot and that could justify using a microservice approach versus a monolithic one?

Java – Many-to-many relationship with JPA: Field value could not be set by reflection – Field value could not be set

I am here for a few hours to solve this problem, but so far I have not been able to solve it, although I have found similar solutions.

It seems to be a problem related to the JPA reflection at the time of insertion.

See the generated error:

{
    "timestamp": "2019-11-16T06:24:12.961+0000",
    "status": 500,
    "error": "Internal Server Error",
    "message": "Could not set field value (br.com.ktrak.domain.entities.AlunoEntity@2f570615) value by reflection : (class br.com.ktrak.domain.entities.ids.MatriculaId.aluno) setter of br.com.ktrak.domain.entities.ids.MatriculaId.aluno; nested exception is org.hibernate.PropertyAccessException: Could not set field value (br.com.ktrak.domain.entities.AlunoEntity@2f570615) value by reflection : (class br.com.ktrak.domain.entities.ids.MatriculaId.aluno) setter of br.com.ktrak.domain.entities.ids.MatriculaId.aluno",
    "trace": "org.springframework.orm.jpa.JpaSystemException: Could not set field value (br.com.ktrak.domain.entities.AlunoEntity@2f570615) value by reflection : (class br.com.ktrak.domain.entities.ids.MatriculaId.aluno) setter of br.com.ktrak.domain.entities.ids.MatriculaId.aluno; nested exception is org.hibernate.PropertyAccessException: Could not set field value (br.com.ktrak.domain.entities.AlunoEntity@2f570615) value by reflection : (class br.com.ktrak.domain.entities.ids.MatriculaId.aluno) setter of br.com.ktrak.domain.entities.ids.MatriculaId.alunorntat org.springframework.orm.jpa.vendor.HibernateJpaDialect.convertHibernateAccessException(HibernateJpaDialect.java:352)rntat org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:254)rntat org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:528)rntat org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61)rntat org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242)rntat org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:153)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)rntat org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:178)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)rntat org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:93)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)rntat org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212)rntat com.sun.proxy.$Proxy112.save(Unknown Source)rntat br.com.ktrak.domain.services.MatriculaService.salva(MatriculaService.java:48)rntat br.com.ktrak.secretaria.api.MatriculaApi.insere(MatriculaApi.java:38)rntat br.com.ktrak.secretaria.api.MatriculaApi$$FastClassBySpringCGLIB$$6f4cf31f.invoke()rntat org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)rntat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)rntat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)rntat org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:353)rntat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)rntat org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)rntat org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)rntat br.com.ktrak.secretaria.api.MatriculaApi$$EnhancerBySpringCGLIB$$4a53f697.insere()rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rntat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rntat java.base/java.lang.reflect.Method.invoke(Method.java:567)rntat org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190)rntat org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138)rntat org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:106)rntat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:888)rntat org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:793)rntat org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87)rntat org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040)rntat org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943)rntat org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)rntat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)rntat javax.servlet.http.HttpServlet.service(HttpServlet.java:660)rntat org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)rntat javax.servlet.http.HttpServlet.service(HttpServlet.java:741)rntat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)rntat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rntat org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)rntat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)rntat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rntat org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)rntat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)rntat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)rntat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rntat org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)rntat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)rntat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)rntat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rntat org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)rntat org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)rntat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)rntat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)rntat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)rntat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)rntat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:526)rntat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)rntat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)rntat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)rntat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)rntat org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408)rntat org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)rntat org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)rntat org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1579)rntat org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)rntat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)rntat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)rntat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)rntat java.base/java.lang.Thread.run(Thread.java:830)rnCaused by: org.hibernate.PropertyAccessException: Could not set field value (br.com.ktrak.domain.entities.AlunoEntity@2f570615) value by reflection : (class br.com.ktrak.domain.entities.ids.MatriculaId.aluno) setter of br.com.ktrak.domain.entities.ids.MatriculaId.alunorntat org.hibernate.property.access.spi.SetterFieldImpl.set(SetterFieldImpl.java:61)rntat org.hibernate.tuple.component.AbstractComponentTuplizer.setPropertyValues(AbstractComponentTuplizer.java:76)rntat org.hibernate.tuple.component.PojoComponentTuplizer.setPropertyValues(PojoComponentTuplizer.java:99)rntat org.hibernate.type.ComponentType.setPropertyValues(ComponentType.java:450)rntat org.hibernate.tuple.entity.AbstractEntityTuplizer$NormalMappedIdentifierValueMarshaller.getIdentifier(AbstractEntityTuplizer.java:324)rntat org.hibernate.tuple.entity.AbstractEntityTuplizer.getIdentifier(AbstractEntityTuplizer.java:219)rntat org.hibernate.persister.entity.AbstractEntityPersister.getIdentifier(AbstractEntityPersister.java:5073)rntat org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:150)rntat org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:70)rntat org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:108)rntat org.hibernate.internal.SessionImpl.fireMerge(SessionImpl.java:776)rntat org.hibernate.internal.SessionImpl.merge(SessionImpl.java:763)rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rntat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rntat java.base/java.lang.reflect.Method.invoke(Method.java:567)rntat org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:368)rntat com.sun.proxy.$Proxy93.merge(Unknown Source)rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rntat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rntat java.base/java.lang.reflect.Method.invoke(Method.java:567)rntat org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:314)rntat com.sun.proxy.$Proxy93.merge(Unknown Source)rntat org.springframework.data.jpa.repository.support.SimpleJpaRepository.save(SimpleJpaRepository.java:557)rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rntat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rntat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rntat java.base/java.lang.reflect.Method.invoke(Method.java:567)rntat org.springframework.data.repository.core.support.RepositoryComposition$RepositoryFragments.invoke(RepositoryComposition.java:371)rntat org.springframework.data.repository.core.support.RepositoryComposition.invoke(RepositoryComposition.java:204)rntat org.springframework.data.repository.core.support.RepositoryFactorySupport$ImplementationMethodExecutionInterceptor.invoke(RepositoryFactorySupport.java:657)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)rntat org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.doInvoke(RepositoryFactorySupport.java:621)rntat org.springframework.data.repository.core.support.RepositoryFactorySupport$QueryExecutorMethodInterceptor.invoke(RepositoryFactorySupport.java:605)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)rntat org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:353)rntat org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)rntat org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)rntat org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139)rnt... 70 morernCaused by: java.lang.IllegalArgumentException: Can not set java.lang.Long field br.com.ktrak.domain.entities.ids.MatriculaId.aluno to br.com.ktrak.domain.entities.AlunoEntityrntat java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:167)rntat java.base/jdk.internal.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:171)rntat java.base/jdk.internal.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:81)rntat java.base/java.lang.reflect.Field.set(Field.java:780)rntat org.hibernate.property.access.spi.SetterFieldImpl.set(SetterFieldImpl.java:41)rnt... 109 morern",
    "path": "/v1/matriculas"
}

I have a problem inserting a many-to-many relationship between student and class. The relationship class contains some custom fields, see:

package br.com.ktrak.domain.entities;

import br.com.ktrak.domain.entities.ids.MatriculaId;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.context.annotation.Primary;

import javax.persistence.*;
import java.io.Serializable;


@Data
@Entity(name = "matricula")
@Table(name = "matriculas")
@IdClass(MatriculaId.class)
public class MatriculaEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id @Getter
    @Column(name = "aluno_id", insertable = false, updatable = false)
    private Long alunoId;

    @Id @Getter
    @Column(name = "turma_id", insertable = false, updatable = false)
    private Long turmaId;

    @Getter @Setter
    @JoinColumn(name = "aluno_id")
    @MapsId("alunoId")
    @ManyToOne(fetch = FetchType.LAZY)
    private AlunoEntity aluno;

    @Getter @Setter
    @JoinColumn(name = "turma_id")
    @MapsId("turmaId")
    @ManyToOne(fetch = FetchType.LAZY)
    private TurmaEntity turma;

    @Getter @Setter
    @Column(nullable = false, length = 12, unique = true)
    private String numero;

    @Column @Getter @Setter
    private Integer faltas;

    @Column @Getter @Setter
    private Double n1;

    @Column @Getter @Setter
    private Double n2;

    @Column @Getter @Setter
    private Double n3;

    @Column @Getter @Setter
    private Double vf;

    @Column @Getter @Setter
    private Double media;
}

The @classID is implemented as follows.

@Embeddable
@Getter
@Setter
@EqualsAndHashCode
public class MatriculaId implements Serializable {

    private static final long serialVersionUID = -3138856182021663633L;

    @Column(name = "aluno_id")
    private Long aluno;

    @Column(name = "turma_id")
    private Long turma;

    public MatriculaId() {
    }

    public MatriculaId(Long aluno, Long turma) {
        this.aluno = aluno;
        this.turma = turma;
    }


}

The student unit is:

package br.com.ktrak.domain.entities;


import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;

@Entity
@Table(name = "alunos")
@EqualsAndHashCode(callSuper = false)
public class AlunoEntity extends PessoaEntity {

    @Getter @Setter
    @OneToMany(mappedBy = "aluno", cascade = CascadeType.ALL)
    private List matriculas = new ArrayList<>();

    public AlunoEntity() {
    }

    public AlunoEntity(Long id, String nome, LocalDate dataNascimento, String cep, String logradouro, String bairro, String cidade, String estado) {
        this.id = id;
        this.nome = nome;
        this.dataNascimento = dataNascimento;
        this.cep = cep;
        this.logradouro = logradouro;
        this.bairro = bairro;
        this.cidade = cidade;
        this.estado = estado;
    }
}

This class inherits from the entity person, see:

package br.com.ktrak.domain.entities;

import lombok.*;
import org.hibernate.annotations.ColumnDefault;

import javax.persistence.*;
import java.time.LocalDate;
import java.util.Objects;

@EqualsAndHashCode
@Table(name = "pessoas")
@Entity
public class PessoaEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Getter() @Setter
    @Column
    protected Long id;

    @Column(length = 64, nullable = false)
    @Getter() @Setter
    protected String nome;

    @Column(nullable = false)
    @Getter() @Setter
    protected LocalDate dataNascimento;

    @Column(length = 64, nullable = false)
    @Getter() @Setter
    protected String logradouro;

    @Column(length = 8, nullable = false)
    @Getter() @Setter
    protected String cep;

    @Column(length = 64, nullable = false)
    @Getter() @Setter
    protected String bairro;

    @Column(length = 64, nullable = false)
    @Getter() @Setter
    protected String cidade;

    @Column(length = 64, nullable = false)
    @Getter() @Setter
    protected String estado;

    @Column(unique = true)
    @Getter() @Setter
    protected String digital;

    public PessoaEntity() {
    }

}

The other end class is the class entity:

package br.com.ktrak.domain.entities;

import lombok.*;

import javax.persistence.*;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

@Data
@Entity
@Table(name = "turmas")
public class TurmaEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column
    private Long id;

    @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
    @JoinColumn(name = "turma_id")
    private List diaHoraAulas = new ArrayList<>();

    @ManyToOne
    private ProfessorEntity professor;

    @OneToMany(cascade = CascadeType.ALL)
    @JoinColumn(name = "turma_id")
    private List diasLetivos = new ArrayList<>();

    @ManyToOne()
    @JoinColumn(name = "disciplina_id", nullable = false)
    private DisciplinaEntity disciplina;

    @OneToMany(mappedBy = "turma", cascade = CascadeType.ALL)
    private List matriculas = new ArrayList<>();
}