instruction
string
input
string
output
string
source_file
string
priority
int64
请完成以下Java代码
public InputStream getInputStream() throws IOException { connect(); return new ConnectionInputStream(this.resources.getInputStream()); } @Override public void connect() throws IOException { if (this.connected) { return; } this.resources.connect(); this.connected = true; } /** * Connection {@link...
super.close(); } finally { try { NestedUrlConnection.this.cleanup.clean(); } catch (UncheckedIOException ex) { throw ex.getCause(); } } } } }
repos\spring-boot-4.0.1\loader\spring-boot-loader\src\main\java\org\springframework\boot\loader\net\protocol\nested\NestedUrlConnection.java
1
请在Spring Boot框架中完成以下Java代码
public class RabbitMQEventBusConfiguration { public static final String APPLICATION_NAME_SPEL = "${spring.application.name:spring.application.name-not-set}"; @Value(APPLICATION_NAME_SPEL) private String appName; @Bean public org.springframework.amqp.support.converter.MessageConverter amqpMessageConverter(final Obj...
* Attempt to set the application name (e.g. metasfresh-webui-api) as the rabbitmq connection name. * Thx to <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-messaging.html#boot-features-rabbitmq">spring-boot-features-rabbitmq</a> * <p> * (although right now it doesn't need to ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\event\remote\rabbitmq\RabbitMQEventBusConfiguration.java
2
请在Spring Boot框架中完成以下Java代码
public class NettyProperties { /** * Level of leak detection for reference-counted buffers. If not configured via * 'ResourceLeakDetector.setLevel' or the 'io.netty.leakDetection.level' system * property, default to 'simple'. */ private @Nullable LeakDetection leakDetection; public @Nullable LeakDetection ...
/** * Detect leaks for 1% of buffers. */ SIMPLE, /** * Detect leaks for 1% of buffers and track where they were accessed. */ ADVANCED, /** * Detect leaks for 100% of buffers and track where they were accessed. */ PARANOID } }
repos\spring-boot-4.0.1\module\spring-boot-netty\src\main\java\org\springframework\boot\netty\autoconfigure\NettyProperties.java
2
请在Spring Boot框架中完成以下Java代码
public class MainApplication { private final BookstoreService bookstoreService; public MainApplication(BookstoreService bookstoreService) { this.bookstoreService = bookstoreService; } public static void main(String[] args) { SpringApplication.run(MainApplication.class, args); } ...
System.out.println("\nStored procedure ..."); bookstoreService.fetchAnthologyAuthorsViaStoredProcedure(); System.out.println("\n---------------------------------------------------------"); System.out.println("\nStored procedure and DTO ..."); bookstoreService.fetchAntho...
repos\Hibernate-SpringBoot-master\HibernateSpringBootCallStoredProcedureReturnResultSet\src\main\java\com\bookstore\MainApplication.java
2
请完成以下Java代码
public final class CrossOriginEmbedderPolicyHeaderWriter implements HeaderWriter { private static final String EMBEDDER_POLICY = "Cross-Origin-Embedder-Policy"; private @Nullable CrossOriginEmbedderPolicy policy; /** * Sets the {@link CrossOriginEmbedderPolicy} value to be used in the * {@code Cross-Origin-Em...
CrossOriginEmbedderPolicy(String policy) { this.policy = policy; } public String getPolicy() { return this.policy; } public static @Nullable CrossOriginEmbedderPolicy from(String embedderPolicy) { for (CrossOriginEmbedderPolicy policy : values()) { if (policy.getPolicy().equals(embedderPolicy)) {...
repos\spring-security-main\web\src\main\java\org\springframework\security\web\header\writers\CrossOriginEmbedderPolicyHeaderWriter.java
1
请在Spring Boot框架中完成以下Java代码
public int add(MemberBrandAttention memberBrandAttention) { int count = 0; if(memberBrandAttention.getBrandId()==null){ return 0; } UmsMember member = memberService.getCurrentMember(); memberBrandAttention.setMemberId(member.getId()); memberBrandAttention.setM...
public Page<MemberBrandAttention> list(Integer pageNum, Integer pageSize) { UmsMember member = memberService.getCurrentMember(); Pageable pageable = PageRequest.of(pageNum-1,pageSize); return memberBrandAttentionRepository.findByMemberId(member.getId(),pageable); } @Override public ...
repos\mall-master\mall-portal\src\main\java\com\macro\mall\portal\service\impl\MemberAttentionServiceImpl.java
2
请在Spring Boot框架中完成以下Java代码
public class Author { @Id @GeneratedValue(strategy = GenerationType.AUTO) Integer id; @Column(name = "firstname") String firstName; @Column(name = "lastname") String lastName; @Column(name = "bookid") Integer bookId; public Author(Integer id, String firstName, String lastName, I...
return lastName; } public void setId(Integer id) { this.id = id; } public void setFirstName(String firstName) { this.firstName = firstName; } public void setLastName(String lastName) { this.lastName = lastName; } public Integer getBookId() { return boo...
repos\springboot-demo-master\GraphQL\src\main\java\com\et\graphql\model\Author.java
2
请完成以下Spring Boot application配置
spring: kafka: producer: value-serializer: org.springframework.kafka.support.serializer.JsonSerializer consumer: value-deserial
izer: org.apache.kafka.common.serialization.ByteArrayDeserializer
repos\spring-kafka-main\samples\sample-01\src\main\resources\application.yml
2
请完成以下Java代码
public static AttributeSetInstanceId ofRepoId(final int repoId) { final AttributeSetInstanceId id = ofRepoIdOrNull(repoId); if (id == null) { throw new AdempiereException("Invalid repoId: " + repoId); } return id; } public static AttributeSetInstanceId ofRepoIdOrNone(final int repoId) { final Attrib...
/** * @return true if this is about a "real" greater-than-zero {@code M_AttributeSetInstance_ID}. */ public boolean isRegular() { return repoId > NONE.repoId; } public static boolean isRegular(@Nullable final AttributeSetInstanceId asiId) { return asiId != null && asiId.isRegular(); } @Nullable public...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\mm\attributes\AttributeSetInstanceId.java
1
请完成以下Java代码
public class PlainTrxSavepoint implements ITrxSavepoint { private final ITrx trx; private final String name; public PlainTrxSavepoint(final ITrx trx, final String name) { this.trx = trx; this.name = name; } @Override public String toString() { return getClass().getSimpleName() + "[" + "name=" + name...
} @Override public Object getNativeSavepoint() { // dummy return name; } @Override public ITrx getTrx() { return trx; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\trx\api\impl\PlainTrxSavepoint.java
1
请在Spring Boot框架中完成以下Java代码
class LogCorrelationEnvironmentPostProcessor implements EnvironmentPostProcessor { @Override public void postProcessEnvironment(ConfigurableEnvironment environment, SpringApplication application) { if (ClassUtils.isPresent("io.micrometer.tracing.Tracer", application.getClassLoader())) { environment.getPropertyS...
@Override public String[] getPropertyNames() { return new String[] { LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY }; } @Override public @Nullable Object getProperty(String name) { if (name.equals(LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY)) { return this.environment.getProperty("management.tracing....
repos\spring-boot-4.0.1\module\spring-boot-micrometer-tracing\src\main\java\org\springframework\boot\micrometer\tracing\autoconfigure\LogCorrelationEnvironmentPostProcessor.java
2
请在Spring Boot框架中完成以下Java代码
public String getPlanItemInstanceId() { return planItemInstanceId; } public void setPlanItemInstanceId(String planItemInstanceId) { this.planItemInstanceId = planItemInstanceId; } @ApiModelProperty(example = "scriptTask1") public String getElementId() { return elementId; ...
@ApiModelProperty(example = "2023-06-04T22:05:05.474+0000") public Date getDueDate() { return dueDate; } public void setDueDate(Date dueDate) { this.dueDate = dueDate; } @ApiModelProperty(example = "2023-06-03T22:05:05.474+0000") public Date getCreateTime() { return cre...
repos\flowable-engine-main\modules\flowable-cmmn-rest\src\main\java\org\flowable\cmmn\rest\service\api\management\JobResponse.java
2
请完成以下Java代码
public void setIsQtyPerWarehouse (final boolean IsQtyPerWarehouse) { set_Value (COLUMNNAME_IsQtyPerWarehouse, IsQtyPerWarehouse); } @Override public boolean isQtyPerWarehouse() { return get_ValueAsBoolean(COLUMNNAME_IsQtyPerWarehouse); } @Override public void setMD_AvailableForSales_Config_ID (final int ...
public int getSalesOrderLookBehindHours() { return get_ValueAsInt(COLUMNNAME_SalesOrderLookBehindHours); } @Override public void setShipmentDateLookAheadHours (final int ShipmentDateLookAheadHours) { set_Value (COLUMNNAME_ShipmentDateLookAheadHours, ShipmentDateLookAheadHours); } @Override public int get...
repos\metasfresh-new_dawn_uat\backend\de.metas.material\cockpit\src\main\java-gen\de\metas\material\cockpit\model\X_MD_AvailableForSales_Config.java
1
请完成以下Java代码
public Optional<HasId<?>> findEntity(TenantId tenantId, EntityId entityId) { return Optional.ofNullable(findById(tenantId, new RpcId(entityId.getId()))); } @Override public FluentFuture<Optional<HasId<?>>> findEntityAsync(TenantId tenantId, EntityId entityId) { return FluentFuture.from(find...
private final PaginatedRemover<TenantId, Rpc> tenantRpcRemover = new PaginatedRemover<>() { @Override protected PageData<Rpc> findEntities(TenantId tenantId, TenantId id, PageLink pageLink) { return rpcDao.findAllRpcByTenantId(id, pageLink); } @Override protected vo...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\rpc\BaseRpcService.java
1
请完成以下Java代码
public class UmsMemberTag implements Serializable { private Long id; private String name; @ApiModelProperty(value = "自动打标签完成订单数量") private Integer finishOrderCount; @ApiModelProperty(value = "自动打标签完成订单金额") private BigDecimal finishOrderAmount; private static final long serialVersionUID =...
public void setFinishOrderAmount(BigDecimal finishOrderAmount) { this.finishOrderAmount = finishOrderAmount; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(getClass().getSimpleName()); sb.append(" ["); sb.append("Hash = ").ap...
repos\mall-master\mall-mbg\src\main\java\com\macro\mall\model\UmsMemberTag.java
1
请在Spring Boot框架中完成以下Java代码
public AggregationTemporality aggregationTemporality() { return obtain(OtlpMetricsProperties::getAggregationTemporality, OtlpConfig.super::aggregationTemporality); } @Override public Map<String, String> resourceAttributes() { Map<String, String> resourceAttributes = new LinkedHashMap<>(); new OpenTelemetryRes...
public int maxScale() { return obtain(OtlpMetricsProperties::getMaxScale, OtlpConfig.super::maxScale); } @Override public int maxBucketCount() { return obtain(OtlpMetricsProperties::getMaxBucketCount, OtlpConfig.super::maxBucketCount); } @Override public TimeUnit baseTimeUnit() { return obtain(OtlpMetrics...
repos\spring-boot-4.0.1\module\spring-boot-micrometer-metrics\src\main\java\org\springframework\boot\micrometer\metrics\autoconfigure\export\otlp\OtlpMetricsPropertiesConfigAdapter.java
2
请完成以下Java代码
private void addGrantedAuthorityCollection(Collection<GrantedAuthority> result, Object value) { if (value == null) { return; } if (value instanceof Collection<?>) { addGrantedAuthorityCollection(result, (Collection<?>) value); } else if (value instanceof Object[]) { addGrantedAuthorityCollection(resu...
} /** * * @see org.springframework.security.core.authority.mapping.MappableAttributesRetriever#getMappableAttributes() */ @Override public Set<String> getMappableAttributes() { return this.mappableAttributes; } /** * @return Returns the stringSeparator. */ public String getStringSeparator() { retu...
repos\spring-security-main\core\src\main\java\org\springframework\security\core\authority\mapping\MapBasedAttributes2GrantedAuthoritiesMapper.java
1
请完成以下Java代码
public void setBusinessKey(String businessKey) { this.businessKey = businessKey; } public Date getStartedBefore() { return startedBefore; } @CamundaQueryParam(value="startedBefore", converter = DateConverter.class) public void setStartedBefore(Date startedBefore) { this.startedBefore = startedBe...
return outerOrderBy; } } private List<QueryVariableValue> createQueryVariableValues(VariableSerializers variableTypes, List<VariableQueryParameterDto> variables, String dbType) { List<QueryVariableValue> values = new ArrayList<QueryVariableValue>(); if (variables == null) { return values; }...
repos\camunda-bpm-platform-master\webapps\assembly\src\main\java\org\camunda\bpm\cockpit\impl\plugin\base\dto\query\AbstractProcessInstanceQueryDto.java
1
请完成以下Java代码
public String getSitetype() { return sitetype; } public void setSitetype(String sitetype) { this.sitetype = sitetype; } public String getCdate() { return cdate; } public void setCdate(String cdate) { this.cdate = cdate; } public String getComtype() { return comtype; } public void setComtype(Str...
} public String getUpdateTime() { return updateTime; } public void setUpdateTime(String updateTime) { this.updateTime = updateTime; } @Override public String toString() { return "DomainDetail{" + "id='" + id + '\'' + ", sitename='" + sitename + '\'' + ", sitedomain='" + sitedomain + '\'' + ", sitetyp...
repos\spring-boot-quick-master\quick-feign\src\main\java\com\quick\feign\entity\DomainDetail.java
1
请完成以下Java代码
public int hashCode() { final int prime = 31; int result = 1; result = (prime * result) + ((id == null) ? 0 : id.hashCode()); result = (prime * result) + ((name == null) ? 0 : name.hashCode()); return result; } @Override public boolean equals(Object obj) { if...
return false; } } else if (!id.equals(other.id)) { return false; } if (name == null) { if (other.name != null) { return false; } } else if (!name.equals(other.name)) { return false; } return true;...
repos\tutorials-master\spring-security-modules\spring-security-web-boot-1\src\main\java\com\baeldung\roles\custom\persistence\model\Privilege.java
1
请完成以下Java代码
public HUQueryBuilder addPIVersionToInclude(@NonNull final HuPackingInstructionsVersionId huPIVersionId) { _huPIVersionIdsToInclude.add(huPIVersionId); return this; } private Set<HuPackingInstructionsVersionId> getPIVersionIdsToInclude() { return _huPIVersionIdsToInclude; } @Override public HUQueryBuilde...
{ _excludeReservedToOtherThanRef = documentRef; return this; } @Override public IHUQueryBuilder setExcludeReserved() { _excludeReserved = true; return this; } @Override public IHUQueryBuilder setIgnoreHUsScheduledInDDOrder(final boolean ignoreHUsScheduledInDDOrder) { this.ignoreHUsScheduledInDDOrder...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\impl\HUQueryBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public class Hotel implements Serializable { private static final long serialVersionUID = 5560221391479816650L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String name; private Double rating; @ManyToOne(fetch = FetchType.EAGER) @JsonIgnoreProperties({"hibernateLaz...
return city; } public void setCity(City city) { this.city = city; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public double getLatitude() { return lattitude; } public void setLatitude(double latitude) { ...
repos\tutorials-master\spring-boot-modules\spring-boot-caching\src\main\java\com\baeldung\caching\ttl\model\Hotel.java
2
请完成以下Java代码
private void setEdiEnabledFromOrder(@NonNull final I_M_InOut inout) { if (inout.getC_Order_ID() <= 0) { return; // nothing to do } final I_C_Order order = InterfaceWrapperHelper.create(inout.getC_Order(), de.metas.edi.model.I_C_Order.class); if (order == null || order.getC_Order_ID() <= 0) { // noth...
if (inOut.getEDI_Desadv_ID() <= 0 && Check.isNotBlank(inOut.getPOReference())) // task 08619: only try if we have a POReference and thus can succeed { Services.get(IDesadvBL.class).addToDesadvCreateForInOutIfNotExist(inOut); } } /** * Calls {@link IDesadvBL#removeInOutFromDesadv(I_M_InOut)} to detach th...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\model\validator\M_InOut.java
1
请完成以下Java代码
public class User { private static SecretKeySpec KEY = initKey(); static SecretKeySpec initKey(){ try { SecretKey secretKey = KeyGenerator.getInstance("AES").generateKey(); return new SecretKeySpec(secretKey.getEncoded(), "AES"); } catch (NoSuchAlgorithmException ex) { ...
public void setPassword(String password) { this.password = password; } public void addRole(Role role) { roles.add(role); } public List<Role> getRoles() { return Collections.unmodifiableList(roles); } public String getId() { return id; } void setId(Stri...
repos\tutorials-master\patterns-modules\design-patterns-architectural\src\main\java\com\baeldung\dtopattern\domain\User.java
1
请在Spring Boot框架中完成以下Java代码
public class NettyServer { static final Logger log = LoggerFactory.getLogger(NettyServer.class); /** * 端口号 */ @Value("${webSocket.netty.port:8889}") int port; EventLoopGroup bossGroup; EventLoopGroup workGroup; @Autowired ProjectInitializer nettyInitializer; @PostConstr...
// 配置完成,开始绑定server,通过调用sync同步方法阻塞直到绑定成功 ChannelFuture channelFuture = null; try { channelFuture = bootstrap.bind().sync(); log.info("Server started and listen on:{}", channelFuture.channel().localAddress()); // 对关闭通道进行监听 channelFutu...
repos\springboot-demo-master\netty\src\main\java\com\et\netty\server\NettyServer.java
2
请完成以下Java代码
public boolean isExcludeAlreadyExported() { return get_ValueAsBoolean(COLUMNNAME_IsExcludeAlreadyExported); } @Override public void setIsNegateInboundAmounts (final boolean IsNegateInboundAmounts) { set_Value (COLUMNNAME_IsNegateInboundAmounts, IsNegateInboundAmounts); } @Override public boolean isNegate...
public static final String ISSOTRX_No = "N"; @Override public void setIsSOTrx (final @Nullable java.lang.String IsSOTrx) { set_Value (COLUMNNAME_IsSOTrx, IsSOTrx); } @Override public java.lang.String getIsSOTrx() { return get_ValueAsString(COLUMNNAME_IsSOTrx); } @Override public void setIsSwitchCreditM...
repos\metasfresh-new_dawn_uat\backend\de.metas.datev\src\main\java-gen\de\metas\datev\model\X_DATEV_Export.java
1
请完成以下Java代码
public Attribute getByIdOrNull(final @NotNull AttributeId id) { return attributesById.get(id); } @NonNull public Set<Attribute> getByIds(@NonNull final Collection<AttributeId> ids) { if (ids.isEmpty()) {return ImmutableSet.of();} return ids.stream() .distinct() .map(this::getById) .collect(Immu...
.map(this::getById) .filter(Attribute::isActive) .map(Attribute::getAttributeCode) .collect(ImmutableList.toImmutableList()); } public Stream<Attribute> streamActive() { return attributesById.values().stream().filter(Attribute::isActive); } public boolean isActiveAttribute(final AttributeId id) { ...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\org\adempiere\mm\attributes\api\impl\AttributesMap.java
1
请完成以下Java代码
public void debugException(Throwable throwable) { logDebug( "002", "Exception while closing command context: {}",throwable.getMessage(), throwable); } public void infoException(Throwable throwable) { logInfo( "003", "Exception while closing command context: {}",throwable.get...
} public void exceptionWhileInvokingOnCommandFailed(Throwable t) { logError( "005", "Exception while invoking onCommandFailed()", t); } public void bpmnStackTrace(String string) { log(Context.getProcessEngineConfiguration().getLogLevelBpmnStackTrace(), "006", string); }...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\interceptor\ContextLogger.java
1
请完成以下Java代码
public class AccessInterceptor implements HandlerInterceptor { /** * 请求拦截器 * preHandle:在业务处理器处理请求之前被调用。预处理,可以进行编码、安全控制、权限校验等处理; * postHandle:在业务处理器处理请求执行完成后,生成视图之前执行。后处理(调用了Service并返回ModelAndView,但未进行页面渲染),有机会修改ModelAndView (这个博主就基本不怎么用了); * afterCompletion:在DispatcherServlet完全处理完请求后被调用,可用于清理资源...
return HandlerInterceptor.super.preHandle(request, response, handler); } // @Override // public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception { // log.info("AccessInterceptor postHandle"); // HandlerInterce...
repos\spring-boot-quick-master\quick-spring-shiro\src\main\java\com\shiro\shiro\interceptor\AccessInterceptor.java
1
请完成以下Java代码
public class TbStopWatch extends StopWatch { public static TbStopWatch create(){ TbStopWatch stopWatch = new TbStopWatch(); stopWatch.start(); return stopWatch; } public static TbStopWatch create(String taskName){ TbStopWatch stopWatch = new TbStopWatch(); stopWatch...
stop(); return getLastTaskTimeNanos(); } public long stopAndGetLastTaskTimeMillis(){ stop(); return getLastTaskTimeMillis(); } public long stopAndGetLastTaskTimeNanos(){ stop(); return getLastTaskTimeNanos(); } }
repos\thingsboard-master\common\util\src\main\java\org\thingsboard\common\util\TbStopWatch.java
1
请完成以下Spring Boot application配置
test: hostport: httpbin.org:80 # hostport: localhost:5000 uri: http://${test.hostport} #uri: lb://httpbin spring: cloud: gateway.server.webflux: filter: default-filters: #- PrefixPath=/httpbin #- AddResponseHeader=X-Response-Default-Foo, Default-Bar routes: # ==...
tions enable: permissions-policy permissions-policy : geolocation=("https://example.net") logging: level: org.springframework.cloud.gateway: TRACE org.springframework.http.server.reactive: DEBUG org.springframework.web.reactive: DEBUG reactor.ipc.netty: DEBUG reactor.n...
repos\spring-cloud-gateway-main\spring-cloud-gateway-sample\src\main\resources\application-secureheaders.yml
2
请完成以下Java代码
public MigratingDependentInstanceParseHandler<MigratingTransitionInstance, List<JobEntity>> getDependentTransitionInstanceJobHandler() { return dependentTransitionInstanceJobHandler; } public MigratingInstanceParseHandler<IncidentEntity> getIncidentHandler() { return incidentHandler; } public Migratin...
protected List<IncidentEntity> fetchIncidents(CommandContext commandContext, String processInstanceId) { return commandContext.getIncidentManager().findIncidentsByProcessInstance(processInstanceId); } protected List<TaskEntity> fetchTasks(CommandContext commandContext, String processInstanceId) { return co...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\migration\instance\parser\MigratingInstanceParser.java
1
请完成以下Java代码
public static CaseInstanceHelper getCaseInstanceHelper() { return getCaseInstanceHelper(getCommandContext()); } public static CaseInstanceHelper getCaseInstanceHelper(CommandContext commandContext) { return getCmmnEngineConfiguration(commandContext).getCaseInstanceHelper(); } public st...
public static DmnDecisionService getDmnRuleService(CommandContext commandContext) { DmnEngineConfigurationApi dmnEngineConfiguration = getDmnEngineConfiguration(commandContext); if (dmnEngineConfiguration == null) { throw new FlowableException("Dmn engine is not configured"); } ...
repos\flowable-engine-main\modules\flowable-cmmn-engine\src\main\java\org\flowable\cmmn\engine\impl\util\CommandContextUtil.java
1
请完成以下Java代码
public BigDecimal getOldCostPrice() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_OldCostPrice); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setQty (final BigDecimal Qty) { set_Value (COLUMNNAME_Qty, Qty); } @Override public BigDecimal getQty() { final BigDecimal bd...
} @Override public java.lang.String getRevaluationType() { return get_ValueAsString(COLUMNNAME_RevaluationType); } @Override public void setSeqNo (final int SeqNo) { set_Value (COLUMNNAME_SeqNo, SeqNo); } @Override public int getSeqNo() { return get_ValueAsInt(COLUMNNAME_SeqNo); } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_M_CostRevaluation_Detail.java
1
请完成以下Java代码
public BigDecimal getPriceList() { final BigDecimal bd = get_ValueAsBigDecimal(COLUMNNAME_PriceList); return bd != null ? bd : BigDecimal.ZERO; } @Override public void setPriceStd (final BigDecimal PriceStd) { set_Value (COLUMNNAME_PriceStd, PriceStd); } @Override public BigDecimal getPriceStd() { ...
} @Override public java.sql.Timestamp getValidFrom() { return get_ValueAsTimestamp(COLUMNNAME_ValidFrom); } @Override public void setValidTo (final java.sql.Timestamp ValidTo) { set_Value (COLUMNNAME_ValidTo, ValidTo); } @Override public java.sql.Timestamp getValidTo() { return get_ValueAsTimestam...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_Campaign_Price.java
1
请在Spring Boot框架中完成以下Java代码
public class Student { @Id @GeneratedValue private Long id; private String firstName; private String lastName; public Student() { } public Student(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } public Long getId()...
} public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } @Override public String toString() { return "Student{" ...
repos\tutorials-master\persistence-modules\spring-boot-persistence-3\src\main\java\com\baeldung\largeresultset\Student.java
2
请完成以下Java代码
public void beforeMobileApplicationTrlChanged(final I_Mobile_Application_Trl mobileApplicationTrl) { assertNotChangingRegularAndCustomizationFields(mobileApplicationTrl); } @ModelChange(timings = ModelValidator.TYPE_AFTER_CHANGE) public void afterMobileApplicationTrlChanged(final I_Mobile_Application_Trl mobileA...
private static boolean isValueChanged(final I_Mobile_Application_Trl mobileApplicationTrl, final String columnName) { return InterfaceWrapperHelper.isValueChanged(mobileApplicationTrl, columnName); } private enum MobileApplicationTranslatedColumn { Name(I_Mobile_Application_Trl.COLUMNNAME_Name, I_Mobile_Applic...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\translation\interceptor\Mobile_Application_Trl.java
1
请完成以下Java代码
public final class UserSpecificationsBuilder { private final List<SpecSearchCriteria> params; public UserSpecificationsBuilder() { params = new ArrayList<>(); } // API public final UserSpecificationsBuilder with(final String key, final String operation, final Object value, final String p...
Specification<User> result = new UserSpecification(params.get(0)); for (int i = 1; i < params.size(); i++) { result = params.get(i).isOrPredicate() ? Specification.where(result).or(new UserSpecification(params.get(i))) : Specification.where(result).and(new UserSpec...
repos\tutorials-master\spring-web-modules\spring-rest-query-language\src\main\java\com\baeldung\persistence\dao\UserSpecificationsBuilder.java
1
请完成以下Java代码
public nobr addElement(String hashcode,Element element) { addElementToRegistry(hashcode,element); return(this); } /** Adds an Element to the element. @param hashcode name of element for hash table @param element Adds an Element to the element. */ ...
/** Adds an Element to the element. @param element Adds an Element to the element. */ public nobr addElement(String element) { addElementToRegistry(element); return(this); } /** Removes an Element from the element. @param hashcode the name...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\tools\src\main\java-legacy\org\apache\ecs\xhtml\nobr.java
1
请完成以下Java代码
private void performNestedProcessInvocation(@NonNull final InvoiceId invoiceId) { final StringBuilder logMessage = new StringBuilder("Export C_Invoice_ID={} ==>").append(invoiceId.getRepoId()); try { final ProcessExecutor processExecutor = ProcessInfo .builder() .setProcessCalledFrom(getProcessInfo(...
finally { addLog(logMessage.toString()); } } @NonNull private Stream<InvoiceId> retrieveValidSelectedDocuments() { return createSelectedInvoicesQueryBuilder() .addOnlyActiveRecordsFilter() .addEqualsFilter(org.compiere.model.I_C_Invoice.COLUMNNAME_IsSOTrx, true) .addEqualsFilter(org.compiere.m...
repos\metasfresh-new_dawn_uat\backend\de.metas.edi\src\main\java\de\metas\edi\process\export\json\C_Invoice_Selection_Export_JSON.java
1
请完成以下Java代码
public String toString() { return "MDesktop ID=" + AD_Desktop_ID + " " + Name; } /************************************************************************** * Get AD_Desktop_ID * @return desktop */ public int getAD_Desktop_ID() { return AD_Desktop_ID; } /** * Get Name * @return name */ public...
/** * Init Workbench Windows * @return true if initilized */ private boolean initDesktopWorkbenches() { String sql = "SELECT AD_Workbench_ID " + "FROM AD_DesktopWorkbench " + "WHERE AD_Desktop_ID=? AND IsActive='Y' " + "ORDER BY SeqNo"; try { PreparedStatement pstmt = DB.prepareStatement(sql...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MDesktop.java
1
请完成以下Java代码
public class StructuredRemittanceInformationSEPA1 { @XmlElement(name = "CdtrRefInf") protected CreditorReferenceInformationSEPA1 cdtrRefInf; /** * Gets the value of the cdtrRefInf property. * * @return * possible object is * {@link CreditorReferenceInformationSEPA1 } ...
} /** * Sets the value of the cdtrRefInf property. * * @param value * allowed object is * {@link CreditorReferenceInformationSEPA1 } * */ public void setCdtrRefInf(CreditorReferenceInformationSEPA1 value) { this.cdtrRefInf = value; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.payment.sepa\schema-pain_008_003_02\src\main\java-xjc\de\metas\payment\sepa\jaxb\sct\pain_008_003_02\StructuredRemittanceInformationSEPA1.java
1
请完成以下Java代码
public void setResourceType(String resourceType) { this.resourceType = resourceType; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getPermission() { return permission; } public void setPermiss...
return parentIds; } public void setParentIds(String parentIds) { this.parentIds = parentIds; } public Boolean getAvailable() { return available; } public void setAvailable(Boolean available) { this.available = available; } public List<SysRole> getRoles() { ...
repos\springboot-demo-master\shiro\src\main\java\com\et\shiro\entity\SysPermission.java
1
请完成以下Java代码
public String getRootProcessInstanceId() { return rootProcessInstanceId; } public void setRootProcessInstanceId(String rootProcessInstanceId) { this.rootProcessInstanceId = rootProcessInstanceId; } public String getRestartedProcessInstanceId() { return restartedProcessInstanceId; } public v...
dto.processDefinitionName = historicProcessInstance.getProcessDefinitionName(); dto.processDefinitionVersion = historicProcessInstance.getProcessDefinitionVersion(); dto.startTime = historicProcessInstance.getStartTime(); dto.endTime = historicProcessInstance.getEndTime(); dto.removalTime = historicProc...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\HistoricProcessInstanceDto.java
1
请在Spring Boot框架中完成以下Java代码
public DataSourceProperties usersDataSourceProperties() { return new DataSourceProperties(); } /** * 创建 users 数据源 */ @Bean(name = "usersDataSource") @ConfigurationProperties(prefix = "spring.datasource.users.hikari") public DataSource usersDataSource() { // 获得 DataSourcePr...
HikariDataSource dataSource = properties.initializeDataSourceBuilder().type(HikariDataSource.class).build(); // 设置线程池名 if (StringUtils.hasText(properties.getName())) { dataSource.setPoolName(properties.getName()); } return dataSource; } // /** // * 创建 orders 数据源 /...
repos\SpringBoot-Labs-master\lab-19\lab-19-datasource-pool-hikaricp-multiple\src\main\java\cn\iocoder\springboot\lab19\datasourcepool\config\DataSourceConfig.java
2
请完成以下Java代码
public class OAuth2LoginAuthenticationWebFilter extends AuthenticationWebFilter { private final ServerOAuth2AuthorizedClientRepository authorizedClientRepository; /** * Creates an instance * @param authenticationManager the authentication manager to use * @param authorizedClientRepository */ public OAuth2L...
protected Mono<Void> onAuthenticationSuccess(Authentication authentication, WebFilterExchange webFilterExchange) { OAuth2LoginAuthenticationToken authenticationResult = (OAuth2LoginAuthenticationToken) authentication; OAuth2AuthorizedClient authorizedClient = new OAuth2AuthorizedClient( authenticationResult.get...
repos\spring-security-main\oauth2\oauth2-client\src\main\java\org\springframework\security\oauth2\client\web\server\authentication\OAuth2LoginAuthenticationWebFilter.java
1
请完成以下Java代码
public boolean isReadOnly(ELContext context) throws ELException { return node.isReadOnly(bindings, context); } /** * Evaluates the expression as an lvalue and assigns the given value. * @param context used to resolve properties (<code>base.property</code> and <code>base[property]</code>) * and to perform ...
return getStructuralId().equals(other.getStructuralId()) && bindings.equals(other.bindings); } return false; } @Override public int hashCode() { return getStructuralId().hashCode(); } @Override public String toString() { return "TreeValueExpression(" + expr + ")"; } /** * Print the parse tree. * ...
repos\camunda-bpm-platform-master\juel\src\main\java\org\camunda\bpm\impl\juel\TreeValueExpression.java
1
请完成以下Java代码
public ViewRowAttributesLayout getLayout() { return layout; } @Override public void processChanges(final List<JSONDocumentChangedEvent> events) { throw new UnsupportedOperationException(); } @Override public LookupValuesList getAttributeTypeahead(final String attributeName, final String query) { throw ...
.map(field -> toJSONDocumentField(field, jsonOpts)) .collect(Collectors.toList()); jsonDocument.setFields(jsonFields); return jsonDocument; } private JSONDocumentField toJSONDocumentField(final IDocumentFieldView field, final JSONOptions jsonOpts) { final String fieldName = field.getFieldName(); final...
repos\metasfresh-new_dawn_uat\backend\de.metas.ui.web.base\src\main\java\de\metas\ui\web\view\ASIViewRowAttributes.java
1
请完成以下Java代码
public String getProjectValue () { return (String)get_Value(COLUMNNAME_ProjectValue); } /** Set Ordered Quantity. @param QtyOrdered Ordered Quantity */ public void setQtyOrdered (BigDecimal QtyOrdered) { set_Value (COLUMNNAME_QtyOrdered, QtyOrdered); } /** Get Ordered Quantity. @return Ordered Q...
*/ public String getSKU () { return (String)get_Value(COLUMNNAME_SKU); } /** Set Tax Amount. @param TaxAmt Tax Amount for a document */ public void setTaxAmt (BigDecimal TaxAmt) { set_Value (COLUMNNAME_TaxAmt, TaxAmt); } /** Get Tax Amount. @return Tax Amount for a document */ public BigDec...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_I_Invoice.java
1
请完成以下Java代码
protected IDatabase createDatabase() { return new SQLDatabase(config.getDbUrl(), config.getDbUsername(), config.getDbPassword()); } @Override protected ScriptsApplier createScriptApplier(final IDatabase database) { final ScriptsApplier scriptApplier = super.createScriptApplier(database); scriptApplier.setSk...
{ switch (config.getOnScriptFailure()) { case FAIL: return NullScriptsApplierListener.instance; case ASK: if (GraphicsEnvironment.isHeadless()) { return ConsoleScriptsApplierListener.instance; } return new SwingUIScriptsApplierListener(); default: throw new RuntimeException("Un...
repos\metasfresh-new_dawn_uat\backend\de.metas.migration\de.metas.migration.cli\src\main\java\de\metas\migration\cli\workspace_migrate\WorkspaceScriptsApplier.java
1
请完成以下Java代码
private void reload() { final UserId userId; if (m_allNodes) { userId = null; } else { userId = getUserRolePermissions().getUserId(); } log.trace("Reloaded tree for AD_User_ID={}", userId); this._rootNode = retrieveRootWithChildren(userId); } public final IUserRolePermissions getUserRolePerm...
{ throw new IllegalArgumentException("Param 'AD_Tree_ID' may not be null"); } return AD_Tree_ID; } public Builder setTrxName(@Nullable final String trxName) { this.trxName = trxName; return this; } @Nullable public String getTrxName() { return trxName; } /** * @param editable ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-legacy\org\compiere\model\MTree.java
1
请在Spring Boot框架中完成以下Java代码
public Long saveCity(City city) { return cityDao.saveCity(city); } /** * 更新城市逻辑: * 如果缓存存在,删除 * 如果缓存不存在,不操作 */ @Override public Long updateCity(City city) { Long ret = cityDao.updateCity(city); // 缓存存在,删除缓存 String key = "city_" + city.getId(); ...
@Override public Long deleteCity(Long id) { Long ret = cityDao.deleteCity(id); // 缓存存在,删除缓存 String key = "city_" + id; boolean hasKey = redisTemplate.hasKey(key); if (hasKey) { redisTemplate.delete(key); LOGGER.info("CityServiceImpl.deleteCity() : 从...
repos\springboot-learning-example-master\springboot-mybatis-redis\src\main\java\org\spring\springboot\service\impl\CityServiceImpl.java
2
请完成以下Java代码
public void setDescription (String Description) { set_Value (COLUMNNAME_Description, Description); } /** Get Description. @return Optional short description of the record */ public String getDescription () { return (String)get_Value(COLUMNNAME_Description); } /** EntityType AD_Reference_ID=389 */ pu...
/** Set Name. @param Name Alphanumeric identifier of the entity */ public void setName (String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ public String getName () { return (String)get_Value(COLUMNNAME_Name); } /** Get Record...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_AD_Image.java
1
请在Spring Boot框架中完成以下Java代码
public class StoreService { private final ProductRepository productRepository; private final StoreRepository storeRepository; public StoreService(ProductRepository productRepository, StoreRepository storeRepository) { this.productRepository = productRepository; this.storeRepository = storeR...
}); } public void createRandomProduct(Integer storeId) { Optional<Store> storeOpt = this.storeRepository.findById(storeId); storeOpt.ifPresent(store -> { Random random = new Random(); Product product = new Product("Product#" + random.nextInt(), random.nextDouble() * 100)...
repos\tutorials-master\spring-boot-modules\spring-boot-data-2\src\main\java\com\baeldung\javers\service\StoreService.java
2
请在Spring Boot框架中完成以下Java代码
public String getOpenId() { return openId; } public void setOpenId(String openId) { this.openId = openId; } public String getNotifyUrl() { return notifyUrl; } public void setNotifyUrl(String notifyUrl) { this.notifyUrl = notifyUrl; } @Override publ...
return "ProgramPayRequestBo{" + "payKey='" + payKey + '\'' + ", openId='" + openId + '\'' + ", productName='" + productName + '\'' + ", orderNo='" + orderNo + '\'' + ", orderPrice=" + orderPrice + ", orderIp='" + orderIp + '...
repos\roncoo-pay-master\roncoo-pay-service\src\main\java\com\roncoo\pay\trade\bo\ProgramPayRequestBo.java
2
请完成以下Java代码
public String getProcessInstanceId() { return processInstanceId; } public String getExecutionId() { return executionId; } public boolean getExecutable() { return executable; } public Date getNow() { return Context.getProcessEngineConfiguration().getClock().getC...
public String getProcessDefinitionId() { return processDefinitionId; } public boolean isOnlyTimers() { return onlyTimers; } public boolean isOnlyMessages() { return onlyMessages; } public Date getDuedateHigherThan() { return duedateHigherThan; } public...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\DeadLetterJobQueryImpl.java
1
请完成以下Java代码
private Set<Access> getPermissionsToGrant() { final Access permission = getPermissionOrNull(); if (permission == null) { throw new FillMandatoryException(PARAM_PermissionCode); } if (Access.WRITE.equals(permission)) { return ImmutableSet.of(Access.READ, Access.WRITE); } else { return Immuta...
} } private Access getPermissionOrNull() { if (Check.isEmpty(permissionCode)) { return null; } else { return Access.ofCode(permissionCode); } } }
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\security\process\UserGroupRecordAccess_Base.java
1
请完成以下Java代码
private String convertStreamToStr(InputStream is) throws IOException { if (is != null) { Writer writer = new StringWriter(); char[] buffer = new char[1024]; try { Reader reader = new BufferedReader(new InputStreamReader(is, "UTF-8")); int n; ...
} public Boolean getCleanEnvBoolean() { return cleanEnvBoolean; } public Boolean getRedirectErrorFlag() { return redirectErrorFlag; } public String getDirectoryStr() { return directoryStr; } public String getResultVariableStr() { return resultVariableStr; ...
repos\Activiti-develop\activiti-core\activiti-engine\src\main\java\org\activiti\engine\impl\util\ShellCommandExecutor.java
1
请在Spring Boot框架中完成以下Java代码
public String getContent() { return content; } /** * Sets the value of the content property. * * @param value * allowed object is * {@link String } * */ public void setContent(String value) { this.content = value; } /** * Attrib...
public ArticleNumberTypeType getArticleNumberType() { return articleNumberType; } /** * Sets the value of the articleNumberType property. * * @param value * allowed object is * {@link ArticleNumberTypeType } * */ public void setArticleNumberType(Arti...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-edi\src\main\java-xjc_ecosio_remadv\at\erpel\schemas\_1p0\documents\ArticleNumberType.java
2
请完成以下Java代码
public <T> T getTransientProperty(final String name) { @SuppressWarnings("unchecked") final T value = (T)transientProperties.get(name); return value; } public void putTransientProperty(final String name, final Object value) { transientProperties.put(name, value); } /** * Export attributes from session...
Env.setContext(ctx, Env.CTXNAME_AD_Session_ID, sessionId); final PO po = InterfaceWrapperHelper.getStrictPO(sessionPO); final int cols = po.get_ColumnCount(); for (int i = 0; i < cols; i++) { if (!isContextAttribute(i)) { continue; } final String columnName = po.get_ColumnName(i); final Stri...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\session\MFSession.java
1
请完成以下Java代码
protected org.compiere.model.POInfo initPO(final Properties ctx) { return org.compiere.model.POInfo.getPOInfo(Table_Name); } @Override public void setAttributeName (final @Nullable java.lang.String AttributeName) { set_ValueNoCheck (COLUMNNAME_AttributeName, AttributeName); } @Override public java.lang.St...
} @Override public void setM_HU_ID (final int M_HU_ID) { if (M_HU_ID < 1) set_ValueNoCheck (COLUMNNAME_M_HU_ID, null); else set_ValueNoCheck (COLUMNNAME_M_HU_ID, M_HU_ID); } @Override public int getM_HU_ID() { return get_ValueAsInt(COLUMNNAME_M_HU_ID); } @Override public void setPIName (fina...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java-gen\de\metas\handlingunits\model\X_M_HU_Instance_Properties_v.java
1
请完成以下Java代码
protected boolean isValidSortByValue(String value) { return VALID_SORT_BY_VALUES.contains(value); } @Override protected CleanableHistoricProcessInstanceReport createNewQuery(ProcessEngine engine) { return engine.getHistoryService().createCleanableHistoricProcessInstanceReport(); } @Override protec...
} if (tenantIdIn != null && tenantIdIn.length > 0) { query.tenantIdIn(tenantIdIn); } if (Boolean.TRUE.equals(compact)) { query.compact(); } } @Override protected void applySortBy(CleanableHistoricProcessInstanceReport query, String sortBy, Map<String, Object> parameters, ProcessEngin...
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\history\CleanableHistoricProcessInstanceReportDto.java
1
请完成以下Java代码
public ClassLoader getOriginalClassLoader() { return getParent(); } private URL createFileUrl(String name, ClassLoaderFile file) { try { return new URL("reloaded", null, -1, "/" + name, new ClassLoaderFileURLStreamHandler(file)); } catch (MalformedURLException ex) { throw new IllegalStateException(ex);...
@Override public boolean hasMoreElements() { return (this.firstElement != null || this.enumeration.hasMoreElements()); } @Override public E nextElement() { if (this.firstElement == null) { return this.enumeration.nextElement(); } E element = this.firstElement; this.firstElement = null; re...
repos\spring-boot-4.0.1\module\spring-boot-devtools\src\main\java\org\springframework\boot\devtools\restart\classloader\RestartClassLoader.java
1
请在Spring Boot框架中完成以下Java代码
public class JsonVendorContact { @NonNull @JsonProperty("METASFRESHID") JsonMetasfreshId metasfreshId; @JsonProperty("NACHNAME") String lastName; @JsonProperty("VORNAME") String firstName; @JsonProperty("ANREDE") String greeting; @JsonProperty("TITEL") String title; @JsonProperty("POSITION") String po...
@JsonProperty("MOBIL") final @Nullable String phone2, @JsonProperty("FAX") final @Nullable String fax, @JsonProperty("ROLLEN") final @Nullable List<String> contactRoles) { this.metasfreshId = metasfreshId; this.lastName = lastName; this.firstName = firstName; this.greeting = greeting; this.title = titl...
repos\metasfresh-new_dawn_uat\misc\services\camel\de-metas-camel-externalsystems\de-metas-camel-grssignum\src\main\java\de\metas\camel\externalsystems\grssignum\to_grs\api\model\JsonVendorContact.java
2
请在Spring Boot框架中完成以下Java代码
private ConditionOutcome checkDefaultDispatcherName(ConfigurableListableBeanFactory beanFactory) { boolean containsDispatcherBean = beanFactory.containsBean(DEFAULT_DISPATCHER_SERVLET_BEAN_NAME); if (!containsDispatcherBean) { return ConditionOutcome.match(); } List<String> servlets = Arrays .asList...
return ConditionOutcome.noMatch(message.found("servlet registration bean") .items(DEFAULT_DISPATCHER_SERVLET_REGISTRATION_BEAN_NAME)); } if (containsDispatcherRegistrationBean) { return ConditionOutcome.noMatch(message.found("non servlet registration bean") .items(DEFAULT_DISPATCHER_SERVLET_REGISTRA...
repos\spring-boot-4.0.1\module\spring-boot-webmvc\src\main\java\org\springframework\boot\webmvc\autoconfigure\DispatcherServletAutoConfiguration.java
2
请完成以下Java代码
public final class CounterDocHandlerInterceptor extends AbstractModelInterceptor { public static final Builder builder() { return new Builder(); } private final String tableName; private final boolean async; private CounterDocHandlerInterceptor(final Builder builder) { super(); this.tableName = builder....
private String tableName; private boolean async = false; private Builder() { super(); } public CounterDocHandlerInterceptor build() { return new CounterDocHandlerInterceptor(this); } public Builder setTableName(String tableName) { this.tableName = tableName; return this; } private ...
repos\metasfresh-new_dawn_uat\backend\de.metas.swat\de.metas.swat.base\src\main\java\de\metas\document\model\interceptor\CounterDocHandlerInterceptor.java
1
请完成以下Java代码
protected Mono<InstanceId> registerInstance(ServiceInstance instance) { try { Registration registration = converter.convert(instance).toBuilder().source(SOURCE).build(); log.debug("Registering discovered instance {}", registration); return registry.register(registration); } catch (Exception ex) { log....
public void setIgnoredInstancesMetadata(Map<String, String> ignoredInstancesMetadata) { this.ignoredInstancesMetadata = ignoredInstancesMetadata; } private boolean isInstanceAllowedBasedOnMetadata(ServiceInstance instance) { if (instancesMetadata.isEmpty()) { return true; } for (Map.Entry<String, String>...
repos\spring-boot-admin-master\spring-boot-admin-server-cloud\src\main\java\de\codecentric\boot\admin\server\cloud\discovery\InstanceDiscoveryListener.java
1
请完成以下Java代码
public I_W_Basket getW_Basket() throws RuntimeException { return (I_W_Basket)MTable.get(getCtx(), I_W_Basket.Table_Name) .getPO(getW_Basket_ID(), get_TrxName()); } /** Set W_Basket_ID. @param W_Basket_ID Web Basket */ public void setW_Basket_ID (int W_Basket_ID) { if (W_Basket_ID < 1) set_Val...
if (W_BasketLine_ID < 1) set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, null); else set_ValueNoCheck (COLUMNNAME_W_BasketLine_ID, Integer.valueOf(W_BasketLine_ID)); } /** Get Basket Line. @return Web Basket Line */ public int getW_BasketLine_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_W_Bas...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_W_BasketLine.java
1
请完成以下Java代码
void setColumn(String column) { this.column = column; setColumnMapper(); } void setTable(String table) { this.table = table; } void setFilter(Predicate<String> filter) { whereFilter = filter; } /** * Clears the context to defaults. * No filters, match...
clear(); return result; } /** * Sets column mapper based on {@link #column} attribute. * Note: If column is unknown, will remain to look for all columns. */ private void setColumnMapper() { switch (column) { case "*": colIndex = -1; ...
repos\tutorials-master\patterns-modules\design-patterns-behavioral-2\src\main\java\com\baeldung\interpreter\Context.java
1
请完成以下Java代码
public boolean isProductAndUomMatching(@Nullable final ProductId productId, @Nullable final UomId uomId) { return ProductId.equals(getProductId(), productId) && UomId.equals(getUomId(), uomId); } public OrderLineBuilder description(@Nullable final String description) { this.description = description; ret...
public OrderLineBuilder details(@NonNull final Collection<OrderLineDetailCreateRequest> details) { assertNotBuilt(); detailCreateRequests.addAll(details); return this; } public OrderLineBuilder detail(@NonNull final OrderLineDetailCreateRequest detail) { assertNotBuilt(); detailCreateRequests.add(detail)...
repos\metasfresh-new_dawn_uat\backend\de.metas.business\src\main\java\de\metas\order\OrderLineBuilder.java
1
请在Spring Boot框架中完成以下Java代码
public class SessionConfig implements BeanClassLoaderAware { private ClassLoader loader; /** * Note that the bean name for this bean is intentionally * {@code springSessionDefaultRedisSerializer}. It must be named this way to override * the default {@link RedisSerializer} used by Spring Session. */ @Bean ...
*/ private JsonMapper objectMapper() { return JsonMapper.builder().addModules(SecurityJacksonModules.getModules(this.loader)).build(); } /* * @see * org.springframework.beans.factory.BeanClassLoaderAware#setBeanClassLoader(java.lang * .ClassLoader) */ @Override public void setBeanClassLoader(ClassLoader...
repos\spring-session-main\spring-session-samples\spring-session-sample-boot-redis-json\src\main\java\sample\config\SessionConfig.java
2
请完成以下Java代码
public abstract class BaseCheckParamComponent extends BaseComponent { @Override public void handle(OrderProcessContext orderProcessContext) { preHandle(orderProcessContext); // 通用参数校验 commonParamCheck(orderProcessContext); // 子校验组件特有的参数校验 privateParamCheck(orderProcess...
} } /** * 参数校验 * @param param 待校验参数 * @param expCodeEnum 异常错误码 */ protected <T> void checkParam(T param, ExpCodeEnum expCodeEnum) { if (param == null) { throw new CommonBizException(expCodeEnum); } if (param instanceof String && StringUtils.isEmpty(...
repos\SpringBoot-Dubbo-Docker-Jenkins-master\Gaoxi-Order\src\main\java\com\gaoxi\order\component\checkparam\BaseCheckParamComponent.java
1
请在Spring Boot框架中完成以下Java代码
public void clear() { this.loaded.clear(); } @Override public boolean containsValue(Object value) { return this.loaded.containsValue(value); } @Override public Collection<V> values() { return this.loaded.values(); } @Override public Set<Entry<K, V>> entrySet() { return this.loaded.entry...
public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LoadingMap<?, ?> that = (LoadingMap<?, ?>) o; return this.loaded.equals(that.loaded); } @Override public int hashCode() { return this.loaded.hashCode(); ...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\annotation\web\configuration\SecurityReactorContextConfiguration.java
2
请完成以下Java代码
public final void executeLongOperation(final Object component, final Runnable runnable) { invoke() .setParentComponent(component) .setLongOperation(true) .setOnFail(OnFail.ThrowException) // backward compatibility .invoke(runnable); } @Override public void invokeLater(final int windowNo, final Ru...
// nothing } /** * This method does nothing. * * @deprecated please check out the deprecation notice in {@link IClientUIInstance#disableServerPush()}. */ @Deprecated @Override public void disableServerPush() { // nothing } /** * This method throws an UnsupportedOperationException. * * @depreca...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\de\metas\adempiere\form\AbstractClientUIInstance.java
1
请在Spring Boot框架中完成以下Java代码
public class DictQueryBlackListHandler extends AbstractQueryBlackListHandler { @Override protected List<QueryTable> getQueryTableInfo(String dictCodeString) { //针对转义字符进行解码 try { if (dictCodeString.contains("%")) { dictCodeString = URLDecoder.decode(dictCodeString, "U...
} /** * 取where前面的为:table name * * @param str * @return */ private String getTableName(String str) { String[] arr = str.split("\\s+(?i)where\\s+"); String tableName = arr[0].trim(); //【20230814】解决使用参数tableName=sys_user t&复测,漏洞仍然存在 if (tableName.contains("...
repos\JeecgBoot-main\jeecg-boot\jeecg-module-system\jeecg-system-biz\src\main\java\org\jeecg\modules\system\security\DictQueryBlackListHandler.java
2
请完成以下Java代码
public String getNm() { return nm; } /** * Sets the value of the nm property. * * @param value * allowed object is * {@link String } * */ public void setNm(String value) { this.nm = value; } /** * Gets the value of the pstlAdr p...
public PostalAddress6 getPstlAdr() { return pstlAdr; } /** * Sets the value of the pstlAdr property. * * @param value * allowed object is * {@link PostalAddress6 } * */ public void setPstlAdr(PostalAddress6 value) { this.pstlAdr = value; ...
repos\metasfresh-new_dawn_uat\backend\de.metas.banking\de.metas.banking.camt53\src\main\java-xjc\de\metas\banking\camt53\jaxb\camt053_001_02\BranchData2.java
1
请完成以下Java代码
public void setDATEV_ExportFormat(de.metas.datev.model.I_DATEV_ExportFormat DATEV_ExportFormat) { set_ValueFromPO(COLUMNNAME_DATEV_ExportFormat_ID, de.metas.datev.model.I_DATEV_ExportFormat.class, DATEV_ExportFormat); } /** Set DATEV Export Format. @param DATEV_ExportFormat_ID DATEV Export Format */ @Overrid...
/** Set Name. @param Name Alphanumeric identifier of the entity */ @Override public void setName (java.lang.String Name) { set_Value (COLUMNNAME_Name, Name); } /** Get Name. @return Alphanumeric identifier of the entity */ @Override public java.lang.String getName () { return (java.lang.Strin...
repos\metasfresh-new_dawn_uat\backend\de.metas.datev\src\main\java-gen\de\metas\datev\model\X_DATEV_ExportFormatColumn.java
1
请完成以下Java代码
public class WebauthnJacksonModule extends SecurityJacksonModule { /** * Creates a new instance. */ public WebauthnJacksonModule() { super(WebauthnJacksonModule.class.getName(), new Version(1, 0, 0, null, null, null)); } @Override public void configurePolymorphicTypeValidator(BasicPolymorphicTypeValidator....
context.setMixIn(CredentialPropertiesOutput.class, CredentialPropertiesOutputMixin.class); context.setMixIn(CredProtectAuthenticationExtensionsClientInput.class, CredProtectAuthenticationExtensionsClientInputMixin.class); context.setMixIn(PublicKeyCredential.PublicKeyCredentialBuilder.class, PublicKeyCreden...
repos\spring-security-main\webauthn\src\main\java\org\springframework\security\web\webauthn\jackson\WebauthnJacksonModule.java
1
请完成以下Java代码
public void setSuspenseError_Acct (int SuspenseError_Acct) { set_Value (COLUMNNAME_SuspenseError_Acct, Integer.valueOf(SuspenseError_Acct)); } /** Get CpD-Fehlerkonto. @return CpD-Fehlerkonto */ @Override public int getSuspenseError_Acct () { Integer ii = (Integer)get_Value(COLUMNNAME_SuspenseError_Acct...
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue(); return "Y".equals(oo); } return false; } /** Set CpD-Fehlerkonto verwenden. @param UseSuspenseError CpD-Fehlerkonto verwenden */ @Override public void setUseSuspenseError (boolean UseSuspenseError) { set_Value (COLUMNNAME_UseSuspe...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_AcctSchema_GL.java
1
请在Spring Boot框架中完成以下Java代码
public void publish() { int si = stopIndex(users.size(), startIndex, n); LOG.info("Publishing started size={} fromIndex={} n={} stopIndex={}", users.size(), startIndex, n, si); int i = startIndex; if (startIndex < users.size()) { for (; i<si; i++) { if (stoppe...
subscriber.onComplete(); } LOG.info("Publishing done {}", i); } private int stopIndex(int size, int startIndex, int n) { if ((startIndex + n) >= size) { return size; } else { return (startIndex + n); } } public void setStopped() { ...
repos\spring-examples-java-17\spring-webflux\src\main\java\itx\examples\webflux\services\PublishTask.java
2
请完成以下Spring Boot application配置
server: port: 8080 context-path: /admin-server spring: mail: host: smtp.163.com username: xxx@163.com password: xxx properties: mail: smtp: auth: true starttls: enable: true required: t
rue boot: admin: notify: mail: from: xxx@163.com to: xxx@qq.com
repos\SpringAll-master\23.Spring-Boot-Admin\Spring Boot Admin Server\src\main\resources\application.yml
2
请在Spring Boot框架中完成以下Java代码
public class AssetBulkImportService extends AbstractBulkImportService<Asset> { private final AssetService assetService; private final TbAssetService tbAssetService; private final AssetProfileService assetProfileService; @Override protected void setEntityFields(Asset entity, Map<BulkImportColumnType...
entity.setAssetProfileId(assetProfile.getId()); return tbAssetService.save(entity, user); } @Override protected Asset findOrCreateEntity(TenantId tenantId, String name) { return Optional.ofNullable(assetService.findAssetByTenantIdAndName(tenantId, name)) .orElseGet(Asset::ne...
repos\thingsboard-master\application\src\main\java\org\thingsboard\server\service\asset\AssetBulkImportService.java
2
请完成以下Java代码
public class VerfuegbarkeitsanfrageEinzelne { @XmlElement(name = "Artikel", required = true) protected List<ArtikelMenge> artikel; @XmlAttribute(name = "Id", required = true) protected String id; @XmlAttribute(name = "EinsAusNBedarf", required = true) protected boolean einsAusNBedarf; /** ...
} /** * Sets the value of the id property. * * @param value * allowed object is * {@link String } * */ public void setId(String value) { this.id = value; } /** * Gets the value of the einsAusNBedarf property. * */ public bool...
repos\metasfresh-new_dawn_uat\backend\de.metas.vertical.pharma.msv3.schema.v1\src\main\java-xjc\de\metas\vertical\pharma\vendor\gateway\msv3\schema\v1\VerfuegbarkeitsanfrageEinzelne.java
1
请完成以下Java代码
public int getC_AcctSchema_ID () { Integer ii = (Integer)get_Value(COLUMNNAME_C_AcctSchema_ID); if (ii == null) return 0; return ii.intValue(); } /** Set Date From. @param DateFrom Starting date for a range */ public void setDateFrom (Timestamp DateFrom) { set_Value (COLUMNNAME_DateFrom, Date...
/** Set Comment/Help. @param Help Comment or Hint */ public void setHelp (String Help) { set_Value (COLUMNNAME_Help, Help); } /** Get Comment/Help. @return Comment or Hint */ public String getHelp () { return (String)get_Value(COLUMNNAME_Help); } /** Set Name. @param Name Alphanumeric i...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_GL_Fund.java
1
请在Spring Boot框架中完成以下Java代码
public class FanoutRabbitConfig { @Bean public Queue AMessage() { return new Queue("fanout.A"); } @Bean public Queue BMessage() { return new Queue("fanout.B"); } @Bean public Queue CMessage() { return new Queue("fanout.C"); } @Bean FanoutExchange f...
} @Bean Binding bindingExchangeA(Queue AMessage,FanoutExchange fanoutExchange) { return BindingBuilder.bind(AMessage).to(fanoutExchange); } @Bean Binding bindingExchangeB(Queue BMessage, FanoutExchange fanoutExchange) { return BindingBuilder.bind(BMessage).to(fanoutExchange); }...
repos\spring-boot-leaning-master\1.x\第11课:RabbitMQ 详解\spring-boot-rabbitmq\src\main\java\com\neo\rabbit\FanoutRabbitConfig.java
2
请完成以下Java代码
public EsrAddressType getCreditor() { return creditor; } /** * Sets the value of the creditor property. * * @param value * allowed object is * {@link EsrAddressType } * */ public void setCreditor(EsrAddressType value) { this.creditor = value;...
* {@link String } * */ public void setParticipantNumber(String value) { this.participantNumber = value; } /** * Gets the value of the referenceNumber property. * * @return * possible object is * {@link String } * */ public Stri...
repos\metasfresh-new_dawn_uat\backend\vertical-healthcare_ch\forum_datenaustausch_ch.invoice_450_request\src\main\java-xjc\de\metas\vertical\healthcare_ch\forum_datenaustausch_ch\invoice_450\request\Esr9Type.java
1
请完成以下Java代码
public void configure(Map<String, ?> configs, boolean isKey) { if (isKey) { this.typeInfoHeader = KEY_TYPE; } if (configs.containsKey(ADD_TYPE_INFO_HEADERS)) { Object config = configs.get(ADD_TYPE_INFO_HEADERS); if (config instanceof Boolean) { this.addTypeInfo = (Boolean) config; } else if (c...
/** * Set to false to disable adding type info headers. * @param addTypeInfo true to add headers */ public void setAddTypeInfo(boolean addTypeInfo) { this.addTypeInfo = addTypeInfo; } /** * Set a charset to use when converting {@link String} to byte[]. Default UTF-8. * @param charset the charset. */...
repos\spring-kafka-main\spring-kafka\src\main\java\org\springframework\kafka\support\serializer\ToStringSerializer.java
1
请在Spring Boot框架中完成以下Java代码
public TaskBuilder parentTaskId(String parentTaskId) { this.parentTaskId = parentTaskId; return this; } @Override public TaskBuilder tenantId(String tenantId) { this.tenantId = tenantId; return this; } @Override public TaskBuilder formKey(String formKey) { ...
@Override public String getOwner() { return ownerId; } @Override public String getAssignee() { return assigneeId; } @Override public String getTaskDefinitionId() { return taskDefinitionId; } @Override public String getTaskDefinitionKey() { retur...
repos\flowable-engine-main\modules\flowable-task-service\src\main\java\org\flowable\task\service\impl\BaseTaskBuilderImpl.java
2
请完成以下Java代码
public Stream<I_M_Product> streamAllProducts(@Nullable final Instant since) { return productsRepo.streamAllProducts(since); } public List<I_M_Product> getProductsById(@NonNull final Set<ProductId> productIds) { return productsRepo.getByIds(productIds); } @NonNull public I_M_Product getProductById(@NonNull ...
return ImmutableList.of(); } return productIds.stream().map(uomConversionDAO::getProductConversions).collect(ImmutableList.toImmutableList()); } public Stream<I_M_Product_Category> streamAllProductCategories() { return productsRepo.streamAllProductCategories(); } public List<I_C_BPartner> getPartnerRecords...
repos\metasfresh-new_dawn_uat\backend\de.metas.business.rest-api-impl\src\main\java\de\metas\rest_api\v2\product\ProductsServicesFacade.java
1
请完成以下Java代码
public Employee[] getForEntityEmployeesAsArray() { RestTemplate restTemplate = new RestTemplate(); ResponseEntity<Employee[]> response = restTemplate.getForEntity( "http://localhost:8080/spring-rest/employees/", Employee[].class); ...
restTemplate.getForObject( "http://localhost:8080/spring-rest/employees/v2", EmployeeList.class); List<Employee> employees = response.getEmployees(); employees.forEach(System.out::println); return employees; } public void createEmployee...
repos\tutorials-master\spring-web-modules\spring-resttemplate-1\src\main\java\com\baeldung\resttemplate\lists\client\EmployeeClient.java
1
请完成以下Java代码
public Access getRequiredAccess() { return requiredAccess; } @Override public void setRequiredAccess(final Access requiredAccess) { this.requiredAccess = requiredAccess; } @Override public Integer getCopies() { return copies; } @Override
public void setCopies(int copies) { this.copies = copies; } @Override public String getAggregationKey() { return aggregationKey; } @Override public void setAggregationKey(final String aggregationKey) { this.aggregationKey=aggregationKey; } }
repos\metasfresh-new_dawn_uat\backend\de.metas.printing\de.metas.printing.base\src\main\java\de\metas\printing\api\impl\PrintingQueueQuery.java
1
请完成以下Java代码
public void setRootCauseIncidentId(String rootCauseIncidentId) { this.rootCauseIncidentId = rootCauseIncidentId; } public String getConfiguration() { return configuration; } public void setConfiguration(String configuration) { this.configuration = configuration; } public String getHistoryConf...
public void setJobDefinitionId(String jobDefinitionId) { this.jobDefinitionId = jobDefinitionId; } public boolean isOpen() { return IncidentState.DEFAULT.getStateCode() == incidentState; } public boolean isDeleted() { return IncidentState.DELETED.getStateCode() == incidentState; } public bool...
repos\camunda-bpm-platform-master\engine\src\main\java\org\camunda\bpm\engine\impl\history\event\HistoricIncidentEventEntity.java
1
请在Spring Boot框架中完成以下Java代码
public class Login { @XmlElement(required = true) protected String delisId; @XmlElement(required = true) protected String customerUid; @XmlElement(required = true) protected String authToken; @XmlElement(required = true) protected String depot; /** * Gets the value of the deli...
/** * Gets the value of the authToken property. * * @return * possible object is * {@link String } * */ public String getAuthToken() { return authToken; } /** * Sets the value of the authToken property. * * @param value * all...
repos\metasfresh-new_dawn_uat\backend\de.metas.shipper.gateway.dpd\src\main\java-xjc\com\dpd\common\ws\loginservice\v2_0\types\Login.java
2
请在Spring Boot框架中完成以下Java代码
public Class<?> getObjectType() { return Collection.class; } /** * Sets the location of a Resource that is a Properties file in the format defined in * {@link UserDetailsResourceFactoryBean}. * @param resourceLocation the location of the properties file that contains the users * (i.e. "classpath:users.prop...
* @param propertiesResource the Resource that is a properties file that contains the * users * @return the UserDetailsResourceFactoryBean */ public static UserDetailsResourceFactoryBean fromResource(Resource propertiesResource) { UserDetailsResourceFactoryBean result = new UserDetailsResourceFactoryBean(); r...
repos\spring-security-main\config\src\main\java\org\springframework\security\config\core\userdetails\UserDetailsResourceFactoryBean.java
2
请完成以下Java代码
public IMutableAllocationResult call() { // // Create a context identical like the one we got, but using our local transaction name final IHUContext huContextInLocalTrx = huContextFactory.deriveWithTrxName(huContextInitial, ITrx.TRXNAME_ThreadInherited); // // Create HU Attribute transactions co...
// // If we reach this point it was a success success = true; return result; } @Override public boolean doCatch(final Throwable e) throws Throwable { success = false; // Just pass it through throw e; } @Override public void doFinally() { // // NOTE: don't do an...
repos\metasfresh-new_dawn_uat\backend\de.metas.handlingunits.base\src\main\java\de\metas\handlingunits\allocation\impl\HUContextProcessorExecutor.java
1
请完成以下Java代码
public int getC_BP_BankAccount_ID() { return get_ValueAsInt(COLUMNNAME_C_BP_BankAccount_ID); } @Override public void setDateLastUsed (final @Nullable java.sql.Timestamp DateLastUsed) { set_Value (COLUMNNAME_DateLastUsed, DateLastUsed); } @Override public java.sql.Timestamp getDateLastUsed() { return ...
@Override public void setMandateReference (final java.lang.String MandateReference) { set_Value (COLUMNNAME_MandateReference, MandateReference); } @Override public java.lang.String getMandateReference() { return get_ValueAsString(COLUMNNAME_MandateReference); } /** * MandateStatus AD_Reference_ID=5419...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java-gen\org\compiere\model\X_C_BP_BankAccount_DirectDebitMandate.java
1
请完成以下Java代码
private final MFSession getFromCache(final Properties ctx, final int AD_Session_ID) { if (AD_Session_ID <= 0) { return null; } final MFSession session = s_sessions.get(AD_Session_ID); if (session == null) { return null; } if (session.getAD_Session_ID() != AD_Session_ID) { return null; } ...
// Fire AfterLogout event only if current session was closed right now if (!alreadyDestroyed && session.isDestroyed()) { ModelValidationEngine.get().fireAfterLogout(session); } } @Override public void setDisableChangeLogsForThread(final boolean disable) { disableChangeLogsThreadLocal.set(disable); } ...
repos\metasfresh-new_dawn_uat\backend\de.metas.adempiere.adempiere\base\src\main\java\org\adempiere\ad\session\impl\SessionBL.java
1
请完成以下Java代码
public void handle(Document document) { for (List<Word> sentence : document.getSimpleSentenceList(true)) { for (Word word : sentence) { if (shouldInclude(word)) dictionaryMaker.add(wor...
boolean shouldInclude(Word word) { if ("m".equals(word.label) || "mq".equals(word.label) || "w".equals(word.label) || "t".equals(word.label)) { if (!TextUtility.isAllChinese(word.value)) return false; } else if ("nr".equals(...
repos\springboot-demo-master\hanlp\src\main\java\demo\hankcs\hanlp\corpus\dictionary\NatureDictionaryMaker.java
1
请完成以下Java代码
public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public String getEdition() { return edition; } public void setEdition(String edition) { this.edition = edition; } public InternalsDto getInternals() {
return internals; } public void setInternals(InternalsDto internals) { this.internals = internals; } public static ProductDto fromEngineDto(Product other) { return new ProductDto( other.getName(), other.getVersion(), other.getEdition(), InternalsDto.fromEngineDto(other....
repos\camunda-bpm-platform-master\engine-rest\engine-rest\src\main\java\org\camunda\bpm\engine\rest\dto\telemetry\ProductDto.java
1
请完成以下Java代码
public class NotificationEntity extends BaseSqlEntity<Notification> { @Column(name = ModelConstants.NOTIFICATION_REQUEST_ID_PROPERTY, nullable = false) private UUID requestId; @Column(name = ModelConstants.NOTIFICATION_RECIPIENT_ID_PROPERTY, nullable = false) private UUID recipientId; @Enumerated...
setRequestId(getUuid(notification.getRequestId())); setRecipientId(getUuid(notification.getRecipientId())); setType(notification.getType()); setDeliveryMethod(notification.getDeliveryMethod()); setSubject(notification.getSubject()); setText(notification.getText()); setAdd...
repos\thingsboard-master\dao\src\main\java\org\thingsboard\server\dao\model\sql\NotificationEntity.java
1